HTML → JSX コンバーター
HTMLをReact JSXに即座に変換します。classをclassNameに、インラインスタイルをオブジェクトに変換し、void要素を自己終了タグにします。
0 文字
0 文字
使い方
HTMLをReact JSXに即座に変換します。classをclassNameに、インラインスタイルをオブジェクトに変換し、void要素を自己終了タグにします。
- 1Paste your HTML code into the left input panel.
- 2The JSX output appears automatically in the right panel.
- 3Review the converted JSX — check className, htmlFor, and event handlers.
- 4Click Copy to copy the JSX to your clipboard.
- 5Use the Paste Example button to see a demo conversion.
主な機能
- Converts class → className and for → htmlFor automatically
- Transforms inline style strings into JavaScript style objects
- Self-closes void elements: <img />, <input />, <br />, <hr />
- Converts HTML comments to JSX {/* comment */} syntax
- camelCases all HTML event attributes (onclick → onClick)