by Philomath on 3/9/20, 1:38 PM with 0 comments
I am doing a lot of frontend development with javascript and I am still not convinced that having my styles in the javascript is worth it.
I hope someone can explain me why, in their experience, switching to CSS in JS was a good decision.
I find that having a strict naming convention in your css classes you can go very very far, without the need of making your js bigger and more complex. And if your problem is that CSS doesn't have a local scope, there's fixes for that too.