3 ms·
CSS-in-JS (like how Styled Components and Emotion do it) is primarily a solution to code organization. It doesn't fundamentally change how CSS works.
by paavohtl 1y ago
CSS-in-JS (like how Styled Components and Emotion do it) is primarily a solution to code organization. It doesn't fundamentally change how CSS works.
- pier25 1y agoBut it's a performance killer https://dev.to/srmagura/why-were-breaking-up-wiht-css-in-js-4g9b https://dev.to/srmagura/why-were-breaking-up-wiht-css-in-js-... Edit: See also this thread on Bluesky https://bsky.app/profile/infrequently.org/post/3lnehf53bpcl7 https://bsky.app/profile/infrequently.org/post/3lnehf53bpcl7
- MrJohz 1y agoIt can be, depending on how it's used. But most of the modern tools I've seen are specifically designed to compile away the dynamic aspects of CSS-in-JS, meaning it essentially becomes a different way of writing normal CSS.