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

Jose Hernandez
~ 4 years ago

I was expecting a Tailwind feature in this lesson, but "don't use Tailwind for a UI framework/library problem" is also a valid lesson in itself.