Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Tailwind devs: You don't need clsx to toggle styles 👀

35,970 görüntüleme • 1 yıl önce •via X (Twitter)

10 Yorum

IroncladDev profil fotoğrafı
IroncladDev1 yıl önce

maybe just don't use tailwind at all

Page to Pixel Publishing profil fotoğrafı
Page to Pixel Publishing1 yıl önce

Boost, surf, and weave your way through The Art of Flight, an arcade game about flying multiple ships at the same time. With solo, local co-op, and a leaderboard, there are tons of ways to play. Wishlist on Steam today!

simeonGriggs profil fotoğrafı
simeonGriggs1 yıl önce

Yep, my favorite way to do it

Navicstein Chinemerem profil fotoğrafı
Navicstein Chinemerem1 yıl önce

Now you have two problems, clsx works fine and you can use plain objects instead of nested tenarry

Gokuljs profil fotoğrafı
Gokuljs1 yıl önce

Why do i the feeling clsx is still better

Ömer Ayhan profil fotoğrafı
Ömer Ayhan1 yıl önce

We can use objects within clsx. I think that helps dealing clutters

Taz profil fotoğrafı
Taz1 yıl önce

Nice

Paweł Błaszczyk profil fotoğrafı
Paweł Błaszczyk1 yıl önce

I think that depends - if you’re using JS to set the attribute anyway (it’s not some built in state) why not use JS to update classes and have smaller stylesheet with more performant classes and less risk of styles collision? But you must avoid twMerge for this to make sense 😄

Pedro Martins profil fotoğrafı
Pedro Martins1 yıl önce

The correct way IMO

Mohamad Jahani profil fotoğrafı
Mohamad Jahani1 yıl önce

YDKCLSX.

Benzer Videolar

Need to vent... don't listen if you don't want to
1:50

Sensitive content

Need to vent... don't listen if you don't want to

Secretgeek

18,051 görüntüleme • 1 yıl önce