Y
Hacker News
new
|
ask
|
show
|
jobs
by
jmtulloss
3426 days 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/cla...
1 comments
rmetzler
3426 days ago
And the reason why the DOM API uses className is: class is a reserved keyword in JavaScript for a long time.
link