DEV Community

Discussion on: The tiniest CSS-in-JS solution for your open-source React components

Collapse
 
fezvrasta profile image
Federico Zivolo • Edited

Why don't you simply render a <style/> tag? Emotion does the same and it works fine even on SSR.

Collapse
 
omgovich profile image
Vlad Shilov • Edited

Hi! What do you mean? By default Emotion adds <style data-emotion="css"> tags into the head. We do almost the same.

IMG

Collapse
 
fezvrasta profile image
Federico Zivolo • Edited

That only happens on development builds.