An open API service indexing awesome lists of open source software.

https://github.com/xeonjs-org/jsx2xset-babel-plugin


https://github.com/xeonjs-org/jsx2xset-babel-plugin

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# JSX2XSET
### Convert JSX Syntaxes to XSET(Xeon-Stack-Element-Tree) Object.

```js
export default function App (props) {

return (


Hello World


My name is Arif Sardar



);
}
```
### Convert this to :
```js
export default function App (props) {

return ({
"name": "div",
"props": {
"attributes": {
"className": "container",
"id": "first-div",
"style": style.container
},
"children": [{
"name": "h1",
"props": {
"attributes": {
"style": {
color: "#fff",
backgroundColor: "#000"
}
},
"children": ["Hello World"]
}
}, {
"name": "h1",
"props": {
"attributes": {},
"children": ["My name is Arif Sardar"]
}
}]
}
});
```