Input — Tailwind HTML0 chars
Output — React JSX0 chars
export default function Component() {
return (
<>
{/* Your JSX will appear here */}
</>
)
}
Live PreviewRendered with Tailwind
HTML vs React Attributes
Quick reference for every attribute this tool converts automatically.
| HTML | React JSX | Notes |
|---|---|---|
class | className | Reserved keyword in JavaScript |
for | htmlFor | Reserved keyword in JavaScript |
tabindex | tabIndex | camelCase |
readonly | readOnly | camelCase |
maxlength | maxLength | camelCase |
minlength | minLength | camelCase |
autocomplete | autoComplete | camelCase |
autofocus | autoFocus | camelCase |
colspan | colSpan | camelCase |
rowspan | rowSpan | camelCase |
onclick | onClick | Event handler |
onchange | onChange | Event handler |
oninput | onInput | Event handler |
onfocus | onFocus | Event handler |
onblur | onBlur | Event handler |
onsubmit | onSubmit | Event handler |
Tailwind to React Examples
Real-world examples showing how the converter transforms common Tailwind UI patterns into React JSX components.