dfilatov / bem-react

BEM-flavoured React
MIT License
132 stars 9 forks source link

Independent entities #4

Open unlok opened 9 years ago

unlok commented 9 years ago

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>
dfilatov commented 9 years ago

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

unlok commented 9 years ago

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?