Hacker News new | ask | show | jobs
by willdr 968 days ago
This is not the best of both worlds. This is an antipattern and discouraged by the Tailwind core team and the Tailwind community at large.
1 comments

Actually, the docs says it's perfectly fine to use @apply for highly reusable components like buttons and form controls: https://tailwindcss.com/docs/reusing-styles#avoiding-prematu...
Did you continue reading?

> even then only if you’re not using a framework like React where a component would be a better choice.

Yes I did. You seem to assume everyone is using a "framework like React". I am not.