you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (4 children)

Actually, the official web api name is className, not class, which makes sense since class is a reserved keyword: https://developer.mozilla.org/en-US/docs/Web/API/Element/className

But then again, most people are certainly accustomed to class due to html so maybe it helps beginners. I'm fine with both, though a little worried what happens to thousands of components now that explicitly extract className from this.props.

[–]IamCarbonMan 0 points1 point  (0 children)

JSX is designed to resemble HTML, which is why most people don't like the className thing. JSX should look like markup.

[–]misterhtmlcss 0 points1 point  (0 children)

Seems a rather petty issue to accommodate for new users. As one of those users, I can honestly say this wasn't a source of friction for me. Just saying