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

nested arrays in custom fields are not transformed #44

Closed Yeti-or closed 6 years ago

Yeti-or commented 6 years ago
({
    block: 'h',
    custom: [
        [{block: 'button'}, {block: 'popup'}],
        [{block: 'button'}, {block: 'popup'}],
        [{block: 'button'}, {block: 'popup'}]
    ]
})

actual: =>

<H custom={[<button/>, <Popup/>, [{ 'block': "button" }, { 'block': "popup" }]]}/>

expected: =>

<H custom={[[<button/>, <Popup/>], [<button/>, <Popup/>], [<button/>, <Popup/>]]}/>