React - Hooks - Multiple buttons - how do I pass the id of the button pressed to the parent component

前端 未结 0 1838

I\'m trying to create a simple component that displays a group of buttons such that when one of the buttons is pressed, the parent knows the id of that butt

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