Skip to content

A live playground for converting JSX or TSX code to JS using Babel then to HTML using React. https://jsx2html.js.org

License

Notifications You must be signed in to change notification settings

maddouri/jsx2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSX to JS to HTML Converter

A single-file, zero-build interactive tool that shows how JSX becomes the HTML a browser actually renders.

Paste or edit JSX/TSX on the left, then watch Babel's compiled JavaScript and the final rendered HTML update live beside it.

screenshot

Panel Content
1. JSX / TSX Editable input — write any JSX or TSX here
2. Compiled JS Babel output using the classic runtime (React.createElement calls)
3. Rendered HTML The actual DOM innerHTML after React renders your component tree

Credits / Dependencies (all CDN, no install)

Library Purpose
Monaco Editor Syntax-highlighted code editors
Babel In-browser JSX + TypeScript compilation
React Rendering JSX to real DOM for HTML extraction
Prettier Formatting the JS and HTML output panels
modern-normalize CSS reset
vscode-codicons Icon font used by Monaco Editor
lucide-static Icons

License

MIT

Releases

No releases published

Packages

No packages published

Languages