This lesson will cover more advanced JSX. You'll learn some powerful tricks, and some common errors to avoid.
Grammar in JSX is mostly the same as in HTML, but there are subtle differences to watch out for. Probably the most frequent of these involves the word
In HTML, it's common to use
class as an attribute name:
In JSX, you can't use the word
class! You have to use
When JSX is rendered, JSX
className attributes are automatically rendered as