useCallback in React seems to be not letting me update state in parent

前端 未结 0 827
不知归路
不知归路 2021-02-07 00:15

I\'ve created a simple example of how useCallback is not allowing me to preserve state changes. When I remove the useCallback, the counters that I store in state u

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