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
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner