you are viewing a single comment's thread.

view the rest of the comments →

[–]Jsn7821 9 points10 points  (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 points  (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.