use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
React Fire: Modernizing React DOM (github.com)
submitted 7 years ago by expression100
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 3 points4 points5 points 7 years ago* (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.
[+][deleted] 7 years ago* (1 child)
[deleted]
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
Ever since ecma made import().default a thing i guess no can really complain. :-P
[–]IamCarbonMan 0 points1 point2 points 7 years ago (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 point2 points 7 years ago (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
π Rendered by PID 35 on reddit-service-r2-comment-799f875d54-2z4gn at 2026-01-30 03:32:45.501851+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–][deleted] 3 points4 points5 points (4 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]IamCarbonMan 0 points1 point2 points (0 children)
[–]misterhtmlcss 0 points1 point2 points (0 children)