Each dynamically rendered element using array.map gets the same id when assigned an onClick function in Typescript

前端 未结 0 1013
太阳男子
太阳男子 2021-01-04 04:42

Each box is getting the assigned the same id only when I assign an onClick function to the boxes, if I remove the onClick then each box gets the correct corresponding id.

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