News for hackers. Stuff that matters.
Re:Demystifying Styled Components by philwelch on Tuesday June 22, 2021 @04:35PM (#27596845)
Speaking as a grumpy and primarily backend developer, how is this fundamentally any different from old-fashioned <FONT> tags?
Re:Demystifying Styled Components by the_gipsy on Thursday June 24, 2021 @02:54PM (#27622243)
The context has changed: for documents you’d want style separated from structure. With apps, some people strive for isolated components instead.
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.