React Round Up cover image

Shifting Away From CSS-in-JS With Sam Magura - RRU 211

React Round Up

00:00

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.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app