top | item 25287834

(no title)

andyhmltn | 5 years ago

I fundamentally disagree with your point that CSS-in-JS is a result of developers not knowing CSS. That's ridiculous

CSS-in-JS solves a lot of problems that people that have been writing 'real CSS' have been experiencing for a long time. Writing CSS for very large applications that deal with lots of shared components across engineering teams is a hard task. Some of those problems are alleviated by libraries like styled-components.

It's not for every use case and should only be used when there is a genuine need (rather than 'because it's shiny.') But shrugging off CSS-in-JS because you don't understand it is a bit silly.

discuss

order

Tade0|5 years ago

CSS-in-JS solves a lot of problems that people that have been writing 'real CSS' have been experiencing for a long time.

Namely?

cutler|5 years ago

'Trouble is some major frameworks like Material UI require CSS-in-JS. That's the crazy world of JS for ya.