Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meguminsama/jsx-reconstructor
Converting React.createElement back to JSX
https://github.com/meguminsama/jsx-reconstructor
jsx react
Last synced: about 8 hours ago
JSON representation
Converting React.createElement back to JSX
- Host: GitHub
- URL: https://github.com/meguminsama/jsx-reconstructor
- Owner: MeguminSama
- Created: 2022-09-25T20:52:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T01:02:31.000Z (8 months ago)
- Last Synced: 2024-05-02T03:22:22.524Z (7 months ago)
- Topics: jsx, react
- Language: TypeScript
- Homepage:
- Size: 38.1 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JSX Reconstructor
This project was made with the intention of turning compiled React code back into JSX.
For example,
```js
const x = React.createElement("div", null, "Hello, World!");
```Should become:
```jsx
const x =Hello, World!;
```## 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
1. `npm install`
2. Create a folder called `input` and place your `.js` files in there.
3. Run `npm run start`Copyright © 2023, https://github.com/MeguminSama & https://github.com/vftable