Transforms BEMJSON objects to JSX markup.
$ npm install --save @bem/sdk.bemjson-to-jsx
const bemjsonToJSX = require('@bem/sdk.bemjson-to-jsx')();
const bemjson = {
block: 'button2',
mods: { theme: 'normal', size: 'm' },
text: 'hello world'
};
const jsxTree = bemjsonToJSX.process(bemjson);
console.log(jsxTree.JSX);
// → "<Button2 theme={'normal'} size={'m'} text={'hello world'}/>"