News for hackers. Stuff that matters.
Re:Real-world CSS vs. CSS-in-JS performance comparison by 11235813213455 on Tuesday June 08, 2021 @04:06PM (#27440066)
like you say, the benefit is to easily attach styles to components (in the same programming language, compared to scss/css modules)

note: @emotion/styled is equivalent to styled-components, lighter and easier to set up for SSR (it works out of the box https://emotion.sh/docs/ssr#default-approach)

When using server-side rendered pages, there's no performance loss on the client-side, maybe a little more processing server-side, not sure if significant

There are no comments on this comment yet.