Danny Andrews
Aug 22, 2017 · 1 min read

Thank you for this detailed writeup! It is valuable to get a birds-eye view of the benefits and roadmap of CSS-in-JS.

I am still in the “Keep CSS out of JS. They are separate domains.” camp, however, and am wondering if any work is being done with CSS-modules tooling to catch up with CSS-in-JS solutions to #2 and #3?

Critical CSS and style optimizations seem to be orthogonal to whether your CSS is in your Javascript, or imported via CSS-modules. It just seems to be a matter of lack of tooling. In fact, I think #3 is a non-issue when you use composes properly, and gzip your code.

)
    Danny Andrews

    Written by

    Software Developer with dreams of becoming a Software Engineer. Likes writing about design patterns and functional programming in JavaScript.