5min chapter

React Round Up cover image

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

React Round Up

CHAPTER

CSS and JS

CSS modules are not compatible with React 18s concurrency mode. It would be a lot of work for the next JS team to get that working with the new app directory and so probably just not worth the cost. I feel like there should be some way where I can define my styles in my component and some magical tool will extract them place them into Like some global style sheet but maintain this like generate a dynamic nameSo it's pseudo scoped and that those styles will be available for that component. This approach feels like it should be the holy grail because yeah I kind of I almost wonder if somebody will eventually nail this approach and that can get it to take off.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode