DEV Community

Discussion on: What is Your Opinion about CSS(-in-JS)?

Collapse
 
bgadrian profile image
Adrian B.G.

CSS being too hard (the reason you mentioned) is invalid, because if CSS is too hard, it will be too hard regardless of its location (in a .js or .css file), even harder with a new abstraction layer.

I would like the CSS in the JS files or at least in the same folder but different file, in order to have components (like Vue single file components).

I would not want to learn CSS-in-JS new abstraction like JSS wants. I would be a hater with objective reasons nevertheless on this abomination.

Anyway, if you would asked me if HTML in JS would be a thing a few years ago I would say no, it is stupid, but then I saw the advantages of the JSX over a template system and changed my mind.