Use callback definition of a functional component outside the component

后端 未结 0 1382
清歌不尽
清歌不尽 2021-01-07 04:23

I got a react functional component with a callback inside. I want to define a struct outside the component with a field which holds a reference to the callback, but not just

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