News for hackers. Stuff that matters.
Re:Demystifying Styled Components by chrisweekly on Thursday June 24, 2021 @03:14PM (#27622523)
I have to ask: could someone please provide a good reason to prefer styled-components to emotion? Emotion supports a superset of s-c's features with comparable (or superior) performance.
Re:Demystifying Styled Components by dbbk on Monday June 28, 2021 @07:06AM (#27660300)
What does Emotion have that Styled Components doesn't?
Re:Demystifying Styled Components by chrisweekly on Monday June 28, 2021 @07:26AM (#27660431)
In a word: flexibility. It supports an identical API to SC, plus: `sx` prop; 0-config SSR (albeit w caveats); a history of superior performance... that's off the top of my head. Also [and with disclaimer that I'm not a huge fan of Material-UI], MUI's maintainers examined their options for their big v5 rewrite, and chose Emotion as the foundational styling engine of choice, aligning with other modern libs like Chakra and theme-ui.