How to declare OnClick() function within a for loop and pass different values each time? React

后端 未结 0 872
花落未央
花落未央 2021-01-31 02:14

I\'m trying to create a list of React components. Each component contains a button, which needs to have an onclick event. This onClick event needs to pass some variables which c

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