How to get previous clicked element on any click event in Reactjs?

前端 未结 0 837
南笙
南笙 2021-01-12 03:57

I am trying to make an single selection in my app. I have a grid and inside it some images. When I clicked an image its parent which is a div background color change to red.

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