2 ms·
Speaking as a grumpy and primarily backend developer, how is this fundamentally any different from old-fashioned <FONT> tags?
by philwelch 5y ago
Speaking as a grumpy and primarily backend developer, how is this fundamentally any different from old-fashioned <FONT> tags?
- the_gipsy 5y agoThe context has changed: for documents you’d want style separated from structure. With apps, some people strive for isolated components instead.
- stirfish 5y ago>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.