
Exciting! Exciting? !Exciting
JS Party: JavaScript, CSS, Web Development
00:00
How to Use Tailwind to Combine Classes in CSS and JS
The downside of tailwind is that you lose the dynamicness of doing it in JS where like CSS and JS is more beneficial because you can apply logic based on state. You would have to predefine all of those different states in those classes in CSS because you can't define them on the fly. It's exactly that, I think. And if you were to just do this in CSS, you know, you can use tailwinds at apply pragma in CSS and combine a bunch of classes together into one. But there's nothing that's stopping you from just doing it in a vanilla way too.
Transcript
Play full episode