News for hackers. Stuff that matters.
Re:Demystifying Styled Components by stirfish on Friday June 25, 2021 @12:07AM (#27627048)
>Instead of eagerly generating CSS classes whenever a styled component is defined, we wait until the component is rendered before injecting those styles into the page.

The design department comes up with a fancy new "Leave Feedback" dialog box. Management declares that all products must include this new dialog box to maintain brand cohesion. The component is shared across teams.

If this were to happen with just <font> tags, you'd be pushing a lot of extra unused stuff to the browser every time management wants a new dialog box.

There are no comments on this comment yet.