Hacker News new | ask | show | jobs
by dasmoth 2855 days ago
Yes, I’m disappointed by this too. It seems to be motivated by thinking about HTML/JSX, rather than the DOM where that attribute really is called className. To me, one of the appealing things about the React model is that the core is a relatively lightweight abstraction on top of the DOM, and other parts of the ecosystem (including JSX templating) are optional. This ends up being one more special case in the React core.

Edit: babel-plugin-react-html-attrs seems like the right solution to people who want to use “class” in their templates.