bem-sdk-archive / bemjson-to-jsx

https://bem-sdk-archive.github.io/bemjson-to-jsx. DEPRECATED →
https://github.com/bem/bem-sdk/tree/master/packages/bemjson-to-jsx
Other
2 stars 2 forks source link

Vice versa? #4

Open awinogradov opened 7 years ago

awinogradov commented 7 years ago

JSX:

<MyBlock shit="ololo">

Bemjson:

{
  block: 'MyBlock',
  mods: {
    shit: 'ololo'
  } 
}
qfox commented 7 years ago

Oh, wait.

@awinogradov Perhaps you have code for that, isn't it?

awinogradov commented 7 years ago

@zxqfox I don't remember) Where you saw it?)

Yeti-or commented 7 years ago

@zxqfox @awinogradov guys could provide a case for this transformation?

qfox commented 7 years ago

@awinogradov I saw it here ;-D