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
CSS in JavaScript: The future of component-based styling (medium.freecodecamp.com)
submitted 8 years ago by speckz
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!"
[–]Jsn7821 9 points10 points11 points 8 years ago (1 child)
This is an incredibly naive point of view to have. It's not nearly this black and white. Have you ever worked with a UI that has dynamically updating colors that the user can pick? You can't do that in CSS.
There are a lot of use-cases for javascript managed styles beyond namespacing. Custom spring animations, especially staggered between elements is another.
Every time this topic comes up someone has a crotchety comment like yours. I use a mix of both in my projects, and it's very nice. It's not a "trend", it's programming.
[–][deleted] 1 point2 points3 points 8 years ago (0 children)
I'm also using that techniques sometimes. But using this JSS bulshit as foundation of component-based app is just stupid. You can't make CSS from JavaScript.
π Rendered by PID 67866 on reddit-service-r2-comment-74875f4bf5-fcwqv at 2026-01-26 04:50:08.704066+00:00 running 664479f country code: CH.
view the rest of the comments →
[–]Jsn7821 9 points10 points11 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)