Converting React.createElement back to JSX
- TypeScript 100%
| .vscode | ||
| src | ||
| .gitignore | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
JSX Reconstructor
This project was made with the intention of turning compiled React code back into JSX.
For example,
const x = React.createElement("div", null, "Hello, World!");
Should become:
const x = <div>Hello, World!</div>;
Caution!
This code is extremely shit and WIP. Please do give it a try and create an issue if you find any problems! Please provide some example code that I can work with to diagnose the issue. Thanks :)
Usage
npm install- Create a folder called
inputand place your.jsfiles in there. - Run
npm run start
Copyright © 2023, https://github.com/MeguminSama & https://github.com/vftable