← React Intermediate Questions - Set 4 Q35
What is JSX and how is it different from HTML?
React Intermediate Questions - Set 4
Example
1
2
<p className="x">Hello {name}</p> // JSX
<p class="x">Hello</p> // HTML
What to notice
- `className`, camelCase attributes, `{}` for expressions, self-closing tags required.
← Back to the question list