So I have an issue in my react code. I'm trying to toggle text with image in an array but when I do it, it's not toggling one item at a time. It changes from text to image but two things happened.
All the items in the array was changed from text to images. What I want here is to change only the item that was clicked in the array.
It's not toggling. My current code changes from text to image but on click again won't take it back together text.
I need help with these two issues
2.1m questions
2.1m answers
60 comments
56.9k users