3 ms·
Because JSX is shorthand for the DOM, not for the HTML serialization of the DOM. In the DOM API (the official W3C one, not React's), the property name is classN
by exogen 11y ago
Because JSX is shorthand for the DOM, not for the HTML serialization of the DOM. In the DOM API (the official W3C one, not React's), the property name is className.