Compiles JSONX into JSON IR format for react create element
any valid JSONX JSON object
any additional resource used for asynchronous properties
json - {type,props,children}
jsonx.outputJSON({ component: 'div', props: { title: 'test', }, children: 'hello', }); //=> { type: 'div',props: { key: 5, title: 'test' },children: 'hello' } Copy
jsonx.outputJSON({ component: 'div', props: { title: 'test', }, children: 'hello', }); //=> { type: 'div',props: { key: 5, title: 'test' },children: 'hello' }
Compiles JSONX into JSON IR format for react create element