Are there any potential issues with passing a custom react hook as a prop

后端 未结 0 894
日久生厌
日久生厌 2021-02-19 08:38

I have a custom react hook that is used by a component but rather than getting the hook from the global context I\'d like to define it in the props as below.

cons         


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