@apply vs new component - for solving duplication? #1649
jenstornell
started this conversation in
General
Replies: 1 comment 1 reply
-
We try to explain some best practices around this in the docs in case you haven't seen: https://tailwindcss.com/docs/extracting-components I would recommend never using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've seen two approaches to solve the duplication problem. @apply and the component (using for example Vue) approach.
Which to use depends on the situation I guess. You who have built many things with Tailwind may have experienced where to draw that line on which approach to use when?
...are things that I will use more than ones on a site. Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions