Performance implications of CSS-in-JS solutions #324
Replies: 3 comments 9 replies
-
@samuelcastro Moving this to discussions 😉 |
Beta Was this translation helpful? Give feedback.
-
I don't think there are any silver bullet, unfortunately. I agree there are a few concerns with Emotion about the performances, here are two different issues:
Tailwind comes with its downsides, it's very different, and it's quite a big lib (70+ kB): https://tailwindcss.com/docs/optimizing-for-production I wouldn't change my current projects from Emotion to Tailwind just because of this. But I've considered writing the Emotion styles differently (I currently use inline |
Beta Was this translation helpful? Give feedback.
-
It could be worth investigating stitches. I've had a play around with it, and the concept is great, it builds on |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
CSS-in-JS solutions like Emotion have performance implications, which is essentially the js runtime parse to convert js into
className
.I'm considering other solutions like Linaria and even Tailwind CSS.
I think this is something that could be improved here as well to improve performances in general.
Related topics:
What's your thoughts?
Beta Was this translation helpful? Give feedback.
All reactions