b_
BEM class name formatter
Example
Simple
var b = ; // blocks === 'button button_size_xl'; // block elements === 'modal__close modal__close_size_xl'; // boolean modifiers === 'button'; === 'button button_hidden';
Alternative BEM syntax
var B = B;var b = ; ==='block-elem block-elem--mod1 block-elem--mod3-mod3 ';
BEViS syntax
var B = B;var b = ; ==='button_call-for-action _disabled _focused_yes';
Full bool values in modifiers
var B = B;var b = ; ==='button button_disabled_true button_focused_false';
React example
var b = ;// orvar b = ;// which is `require('b_').bind(null, 'b-button');` but much convenient { return <div => <span =></span> <span =></span> </div> <div => <span =></span> <span =></span> </div> ;}