loading...

Discussion on: Classical CSS vs CSS in JavaScript

Collapse
michi profile image
Michael Z

With Vue.js, classical CSS is quite nice thanks to the built-in scoped CSS support. A lot of the caveats of classical CSS are due to the fact that it's all global.

That being said, I work on different projects using different frameworks. Some use Vue.js, some React.js, some Nuxt.js, some plain old vanilla or server-side rendered templates. What I dislike about css-in-js is that it's pretty much a react-only solution. I mostly just use tailwind where I can keep the same paradigm across projects. No need to relearn CSS every time I pick a different tool :)