react-toggle-button
react-toggle-button copied to clipboard
How to use inside a loop
Hi,
I have an array and I want this toggle button for each element inside the array. How can I make it specific to each element? Currently, on one click, it makes changes to all the toggle buttons I have on the page. I want to make it specific. Any help is appreciated. Thanks!