What I wanted to do is whenever I click button to change variable in states array of objects. I did it this way, but is there any easier way to do it?
complet