HTML to JSX/React converter
Characters: 0 | Number of lines: 0
Characters: 0 | Number of lines: 0
Description of conversion rules
| HTML attributes | JSX attributes | Description |
|---|---|---|
class |
className |
CSS class name |
for |
htmlFor |
label association |
onclick |
onClick |
Event handler (CamelCase naming) |
tabindex |
tabIndex |
Tab Index |
maxlength |
maxLength |
Maximum length |
readonly |
readOnly |
Read-only attribute |
style="..." |
style={{...}} |
Convert inline style to object |
<!-- --> |
{/* */} |
Comment syntax |