React: CSS in JS

The idea of using inline styles to encapsulate styling into a component is kind of crazy-brilliant. Or obvious if you dismiss the previous 15 years.

I chuckled at slide 26, then actually laughed at slide 30. I’m not completely opposed, our CSS which is all SMACSSd’ out, is really hard to keep track of. Writing it is usually pretty fast, debugging it isn’t.

It does seem like I could eliminate one whole conceptual branch of site-maintenance by rolling-in styling like this.

React: CSS in JS

Leave a comment