You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I still don't understand.
It looks like JavaScript syntax. Do we need to process JSON to check jsonx?
Haven't I reached that document yet?
import{*asjsonx}from'jsonx';constexample_JXM_JSON={component:'p',props:{style:{color:'blue'}},children:'hello world'};//Rendering React Componentsjsonx.getReactElement(example_JXM_JSON);// => JSX Equivalent: <p style={{color:'blue'}}>hello world</p>//Generating HTML stringsjsonx.outputHTML({jsonx: example_JXM_JSON,});// => '<p style="color:blue;">hello world</p>'//Generating JSX stringsjsonx.outputJSX({jsonx: example_JXM_JSON,});// => '<p style={{color:blue,}}>hello world</p>'//Rendering HTML Dom with Reactjsonx.jsonxRender({jsonx: example_JXM_JSON,querySelector:'#myApp',});// <!DOCTYPE html>// <body>// <div id="myApp">// <p style="color:blue;">hello world</p>// </div>// </body>//you can also use the simplified syntaxconstsimpleJXM_JSON={p:{props:{style:{color:'blue'}},children:'hello world'}}//or if you have an element with no props, simply use {type:children}constsuperSimpleJXM={ul:[{li:'first!'},{li:'second!'},]}
https://github.com/repetere/jsonx#readmehttps://github.com/d3x0r/jsox
This maybe cover #4 at the same time.
The text was updated successfully, but these errors were encountered: