Trying to understand the use of useCallback in this situation with React Navigation

后端 未结 0 1563
离开以前
离开以前 2021-02-06 00:49

I\'m trying to learn why it\'s necessary to use useCallback in this situation:

function MyComponent() {
  const navigation = useContext(NavigationCon         


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