bem-react
bem-react copied to clipboard
Independent entities
What about independent entities without binding to BEM?
Like this:
{
block: 'foo',
content: [
{tag: 'strong', content: 'HELLO'},
',',
{tag: 'i', content: 'WORLD'},
]
}
<div class="foo">
<strong>HELLO</strong>,<i>WORLD</i>
</div>
Admittedly I don't like this idea. Either BEM or not )
But this usually case :)
https://github.com/bem/bem-components/blob/v2/common.blocks/button/button.tests/simple.bemjson.js#L21
Or this bad to use?