bem-react icon indicating copy to clipboard operation
bem-react copied to clipboard

Independent entities

Open unlok opened this issue 10 years ago • 2 comments

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>

unlok avatar May 21 '15 19:05 unlok

Admittedly I don't like this idea. Either BEM or not )

dfilatov avatar May 22 '15 08:05 dfilatov

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?

unlok avatar May 22 '15 09:05 unlok