
Shifting Away From CSS-in-JS With Sam Magura - RRU 211
React Round Up
React Components
At spot we weren't just using emotion like directly on DOM elements. I saw that these little components were actually a kind of non-trivial amount of our render times in the profiler and so that's what caused me to be like all right I'm going to rewrite this page with plain CSS. That was really like the kind of aha moment where I was like that cut the render time in half oh wow so half of our time rendering this component was just attaching CSS to these box components, flex components and these typography components. We were really deriving very little value from those components over use something like CSS modules or utility classes which would have been much more performant.
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.