CSS in JavaScript is like replacing a broken screwdriver with your favorite hammer
The argument here is that CSS should be kept seperate because it is just the design and doesn&#x27;t affect the behaviour. But this really isn&#x27;t true. Want to create dropdown menus or tabcontrols? HTML just isnt enough, you need a whole set of styles in order to even create these controls. Additionally why am I able to do animation in CSS? Or insert new HTML elements?? This thing has grown far beyond simple colour switching and changing font sizes.<p>In fact the seperation causes so much mental overhead, that we need interactive browser dev tools just to be able to find what styles are applied to what element. So ultimately the idea of putting everything in one spot, per component, is actually pretty reasonable.