DEV Community

Discussion on: Classical CSS vs CSS in JavaScript

Collapse
 
odalrick profile image
Ulrik Långström

Anything but classical css.

CSS works for tiny projects, like a single component. As the thing grows it will break down.

I know there are ways to work with CSS that mitigate those problems, but I never found any way to actually work.

By moving the CSS into the code you make the code aware of the CSS and that allows refactoring and dead code elimination on a different level.