HTML to JSX
Convert HTML to valid JSX instantly. Handles className, htmlFor, style objects, self-closing tags, and camelCase attributes.
259 characters
JSX Output
<div className="container">
<h1 style={{ color: "red", fontSize: "24px" }}>Welcome</h1>
<label htmlFor="email">Email:</label>
<input type="email" tabIndex="1" autofocus />
<img src="logo.png" alt="Logo" />
<br />
<button onClick="handleClick()">Submit</button>
</div>