React - Render happening before state is changed

后端 未结 0 455
醉梦人生
醉梦人生 2021-02-08 08:31

Very confused about this one. From the code, If you move the green square you will see the printed values. I expected all of the code to run before the state is changed and the

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