jsonx
    Preparing search index...

    Function jsonxRender

    • Use JSONX without any configuration to render JSONX JSON to HTML and insert JSONX into querySelector using ReactDOM.render

      Parameters

      • this: Context

        options for getReactElementFromJSONX

      • config: RenderConfig = ...

        options used to inject html via ReactDOM.render

        • jsonx

          any valid JSONX JSON object

        • resources

          any additional resource used for asynchronous properties

        • querySelector

          selector for document.querySelector

      Returns void

      // Uses react to create <!DOCTYPE html><body><div id="myApp"><div class="jsonx-generated"><p style="color:red;">hello world</p></div></div></body>
      jsonx.jsonxRender({ jsonx: { component: 'div', props:{className:'jsonx-generated',children:[{ component:'p',props:{style:{color:'red'}}, children:'hello world' }]}}, querySelector:'#myApp', });