className
attribute instead ofclass
htmlFor
attribute instead offor
<textarea value="something">
instead of<textarea>something</textarea>
(see Why Textarea Value)<select value="something"><option value="something"></select>
instead of<select><option selected value="something"></select>
(see Why Select Value)- Whitespace (see discussion)
- Tags must be closed and all tags can be self-closing
-
-
Save MonaTem/5821a5cb5ec6623d91819bb86b7e58e5 to your computer and use it in GitHub Desktop.
Difference between JSX and HTML
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment