Closed
Description
From the docs:
Note:
Since JSX is JavaScript, identifiers such asclass
andfor
are discouraged as XML attribute names. Instead, React DOM components expect DOM property names likeclassName
andhtmlFor
, respectively.
But the JSX compiler seems to be smart enough to quote keys like "class"
and "for"
(so they'll work fine even in pre-ES5 environments). So what's the problem? Why are they discouraged, and what exactly does that mean?
Metadata
Metadata
Assignees
Labels
No labels