Stop using CSS in JavaScript for web development
Gajus Kuizinas
1.7K82

> When something goes wrong with styling, the entire app will crash with a long stack trace error (anecdotal experience using v2). Contrast this with CSS, where a “style error” will merely incorrectly render the element.

“merely incorrectly render” means the bug is going to be a lot harder to find (especially if you don’t realise it’s there in the first place). I prefer my code to crash early, whether the bug is coming from JS, API or styles.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.