
Exciting! Exciting? !Exciting
JS Party: JavaScript, CSS, Web Development
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.
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.