4 ms·
It was named that to match the DOM api[0], which React does whenever possible. The DOM api is probably named for the reason you state. [0]: https://developer.m
by jmtulloss 10y ago
It was named that to match the DOM api[0], which React does whenever possible. The DOM api is probably named for the reason you state.
[0]: https://developer.mozilla.org/en-US/docs/Web/API/Element/className https://developer.mozilla.org/en-US/docs/Web/API/Element/cla...
- rmetzler 10y agoAnd the reason why the DOM API uses className is: class is a reserved keyword in JavaScript for a long time.