Loading...
Started by Romans Konoplovs • May 4, 2025 3:02 PM
Total Replies
2
Participants
2
Activity
Quiet
Duration
3:02 PM
Thread starter
onClick like this:<li onClick={setActive} key={value}>{value}</li>const setActive = (e) => {
e.target.classList.toggle("active");
}2 messages in thread