Const
Use React.createElement and JSONX JSON to create React elements
options for getReactElementFromJSONX
Optional
any valid JSONX JSON object
any additional resource used for asynchronous properties
React element via React.createElement
// Uses react to create the equivalent JSX <myComponent style={{color:blue}}>hello world</myComponent>jsonx.getReactElementFromJSONX({component:'myCompnent',props:{style:{color:'blue'}},children:'hello world'}) Copy
// Uses react to create the equivalent JSX <myComponent style={{color:blue}}>hello world</myComponent>jsonx.getReactElementFromJSONX({component:'myCompnent',props:{style:{color:'blue'}},children:'hello world'})
Use React.createElement and JSONX JSON to create React elements