r/programming • • Feb 18 '19

Why I Write CSS in JavaScript

https://mxstbr.com/thoughts/css-in-js/
0 Upvotes

10 comments sorted by

View all comments

23

u/[deleted] Feb 18 '19

Another nail in the coffin of the web I used to love. Just look at the website, vanilla as it gets, but every element needs five hashed classes thanks to this wonderful new technology. One could write a proper style sheet in 50 lines of CSS, but obviously that isn't what the cool JavaScript kids do nowadays.

1

u/angeal98 Feb 18 '19

I like saying cool kids :). Obviously his approach is for big and hard to maintain projects,