Solution to usestate update delay of react hook

Time:2020-10-27

Reference articles:
https://blog.csdn.net/qq_35493664/article/details/105195549
https://juejin.im/post/6844903974647103496#comment