Tailwind CSS with Javascript

Hey Guys how can I use Tailwind css in js like : TeastRef.current.style.color = text-white Or something similar ❓
6 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Dev_Maruti
Dev_Maruti2y ago
Will this replace all other clases or add a new one 🤔
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Dev_Maruti
Dev_Maruti2y ago
To I should try something like : testRef.current.classList.add = 'text-white' Am I correct ❓
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Dev_Maruti
Dev_Maruti2y ago
Ok I got it , Thanks for help buddy , I didn't expected that I someone will reply so soon 🙏🙏👍 Let me know if I can help you in any case 🙏😀
Want results from more Discord servers?
Add your server