Fork me on GitHub
#clojurescript
<
2022-06-30
>
Jakub Holý (HolyJak)21:06:22

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

lilactown21:06:01

i've had an ok experience with emotion

lilactown21:06:22

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

lilactown21:06:29

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