How to handle nested useState in hooks just like the nested setState in component based in react?

后端 未结 0 1758
情深已故
情深已故 2021-01-25 07:50

I am migrating a react app from component to functional with hooks. The problem I\'m facing is that we have a nested setState using callbacks. useState doesn\'t have this featur

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