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
Would be nice to convert Nano JSX to and from an AST.
constApp=()=>{return(<div><h1style="color: blue;">title</h1><p>paragraph</p></div>)}consttree=renderToTree(<App/>)// tree would be something like this:{type: 'FC',name: 'App',children: [{type: 'html',name: 'div',children: [{type: 'html',name: 'h1',body: 'title',props: {style: 'color: blue;'}},{type: 'html',name: 'p',body: 'paragraph'}]}]}// modify the tree if needed and render it to htmlconsthtml=renderFromTree(tree)
The text was updated successfully, but these errors were encountered:
Would be nice to convert Nano JSX to and from an AST.
The text was updated successfully, but these errors were encountered: