3 ms·
In your article you highlighted that semantic markup can be much cleaner using a class like “primary”. But in that instance, all of those css rules will still
by jonwinstanley 3y ago
In your article you highlighted that semantic markup can be much cleaner using a class like “primary”.
But in that instance, all of those css rules will still exist, but they’re stored in a separate css file and given a class name.
Having the reusability at the css class level means that someone else might break your component by updating the css.
With Tailwind, the reusability is at the component level. All the styles are self contained. No one can break your component accidentally.