React: using state in a passed callback function to a class constructor doesnt use latest version of state

后端 未结 0 1341
野的像风
野的像风 2020-12-31 01:01

Sorry for the confusing title, but here is what is going on:

In MyComponent, I am setting a count state with the useState React

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