Skip to content

MeguminSama/JSX-Reconstructor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  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

About

Converting React.createElement back to JSX

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published