Latest solutions
Kanban task management web app (React, TS, Tailwind, Zustand, shadcn)
#react#shadcn#tailwind-css#typescript#zustandSubmitted 7 months ago
Latest comments
- @AdamAlberty@joanpujol
First of all, great-looking solution!
On the JS side, one way to simplify your code would be to use a click listener for each item that toggles an active class for that item.
faqItems.forEach(item => { item.addEventListener("click", () => { item.classList.toggle("active"); }); });
I hope it helps.