Fork me on GitHub
Jakub Holý (HolyJak)21:06:22

Hello! What do people use for css-in-js (or rather in-cljs) nowadays, with react?


i've had an ok experience with emotion


it's extremely easy to write a wrapper around it, and since it's all runtime it's easy to adopt


the downside i've found is performance- adding styles dynamically to the DOM while mounting components can really slow paints down, and the static rules that we have extracted to top-level vars (which is our best practice) still effects initial evaluation of our bundle

🙏 1