Closed sapegin closed 6 years ago
I know CSS Modules would work. Easy to set up too.
Which css-in-js solution allows easy style extraction these days? Is there something particularly good for static sites?
I can explore this a bit, I’m curious too ;-)
Ok. css-in-js is acceptable as long as we can get a CSS file out of it neatly.
I guess we may have issues with hot reload.
But they are rendering one page and extract styles for one page only. Not sure how it will work with multiple pages. It also returns HTML, not CSS. Looks like they don’t support CSS extraction and likely won’t.
https://github.com/emotion-js/emotion/blob/master/docs/extract-static.md
Emotion has something but it requires a Babel plugin.
Emotion has something but it requires a Babel plugin.
Babel is fine. That sounds promising. 👍
Yeah, we can try couple of components.
Maybe not CSS Modules but seems like the easiest to migrate. Other ideas?
Investigate
Styled Components, Emotion, JSS.