How can i change the background color of each individual div using state in Reactjs by clicking a button?

前端 未结 0 574
遇见更好的自我
遇见更好的自我 2020-12-01 10:13

I would like to change the background color of each div by clicking a button. The way I would like it to work is:

They all start out white. Then click the button and

相关标签:
回答
  • 消灭零回复
提交回复
热议问题