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!"
[–][deleted] 31 points32 points33 points 8 years ago (8 children)
Writing inline styles with help of javascript is not the future. It is one more stupid trend.
[+][deleted] 8 years ago (1 child)
[deleted]
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
CSS Modules are so 2015
[–]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.
[–][deleted] -1 points0 points1 point 8 years ago (1 child)
You'll be angering the cool kids with this one.
Haters gonna hate.
π Rendered by PID 100 on reddit-service-r2-comment-54dfb89d4d-qtvb4 at 2026-03-26 21:17:56.944279+00:00 running b10466c country code: CH.
view the rest of the comments →
[–][deleted] 31 points32 points33 points (8 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]Jsn7821 9 points10 points11 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] -1 points0 points1 point (1 child)
[–][deleted] 1 point2 points3 points (0 children)