Extract Reusable Tailwind Components

InstructorAdam Wathan

Share this video with your friends

Send Tweet

The styles aren't the only thing that can be duplicated - often times HTML structure is repeated in our applications. You don't want to just pull out the styles in a @apply directive.

This is where JavaScript comes in handy. We have the data available to us so we'll loop through that data and build repeated card components with Tailwind