![Could someone explain why the onClick is changing all the buttons at the same time instead of just the one I click? : r/react Could someone explain why the onClick is changing all the buttons at the same time instead of just the one I click? : r/react](https://preview.redd.it/could-someone-explain-why-the-onclick-is-changing-all-the-v0-ia64iwx21m3a1.png?auto=webp&s=f29b8790c3ba4f78946ad26e524b587b38b13016)
Could someone explain why the onClick is changing all the buttons at the same time instead of just the one I click? : r/react
![button selector android , jetpack compose, change background color jetpack compose, button selector jetpack compose | Geek Culture button selector android , jetpack compose, change background color jetpack compose, button selector jetpack compose | Geek Culture](https://miro.medium.com/v2/resize:fit:1358/1*lvogcJ3vOgNOzxQSYHP2hg.png)
button selector android , jetpack compose, change background color jetpack compose, button selector jetpack compose | Geek Culture
![How to use an array of colors to change the button background color on the button press using one handleChange (Hooks) - DEV Community How to use an array of colors to change the button background color on the button press using one handleChange (Hooks) - DEV Community](https://res.cloudinary.com/practicaldev/image/fetch/s--DzcrX9zG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yxbnqem712yua89pgjhz.png)
How to use an array of colors to change the button background color on the button press using one handleChange (Hooks) - DEV Community
![change background color on button click in javascript Archives - Orange County Website Design Development | Digital Marketing change background color on button click in javascript Archives - Orange County Website Design Development | Digital Marketing](https://www.altdatum.com/wp-content/uploads/2019/10/Change-Background-Shade-On-Click-Button-HTML-CSS-and-1024x576.jpg)