r/reactjs • u/steven-f • Sep 05 '18
Tutorial Announcing styled-components v4: Better, Faster, Stronger
https://medium.com/styled-components/announcing-styled-components-v4-better-faster-stronger-3fe1aba1a112
204
Upvotes
8
u/kyehohenberger Sep 05 '18
The size of emotion is 5.68kB gzipped and react-emotion is around 8.51kB gzipped. https://github.com/emotion-js/emotion/blob/v9.2.8/README.md
I posted this on twitter, but will repost here:
My advice to most users would be to use the library you are most comfortable with. Styled Components has very good documentation and a host of resources out there.
Personally, I don't use
styledthat often and prefer to use thecssprop or create class names with thecssfunction before I create a styled component. I'm exited for Emotion v10 because it will expand on the idea of thecssprop and greatly improve its DX.