What is it?
bem-immutable
is a library for web interface development. It provides the minimal stack for coding client-side JavaScript and templating.
Installation
Yarn: yarn add bem-immutable
Or npm: npm i --save bem-immutable
Use
;// or import Bem from 'bem-immutable'; const box = 'block';const elem = box; const nextElem = elem; console; // falseconsole; // 'block__element'console; // 'block__element block__element_active' console; // block__element block__element_mod1 block__element_mod2console; // block__element mix1 mix2 console; // block__element block__element_mod1 block__element_mod2console; // block__element mix1 mix2 console; // block__element block__element_mod1 block__element_mod2console; // block__element mix1 mix2 console; // block__element block__element_a block__element_b c console; // block__element block__element_a block__y block__y_is