News for hackers. Stuff that matters.
Re:Play with TailwindCSS in the Browser by MarquesMa on Friday June 10, 2022 @12:07PM (#31696056)
> and then scatter that all over your markup

This is not how you use Tailwind. Back then there was no such concept as component, so people need to write CSS classes to encapsulate and reuse styles.

Now Components are everywhere, and when you write components and CSS classes at the same time, you're non-obviously duplicating structures (Write components, then write classes corresponding that component).

In essence, Tailwind (or styled components and such) makes component mechanic as your single source of abstraction.

There are no comments on this comment yet.