Does setState or dispatch (useReducer hook) make component re-render before calling next lines?

后端 未结 0 760
情歌与酒
情歌与酒 2021-01-21 16:02

I realize a problem when using useState and useReducer hook that any lines of code after the update state function (setState, dispatch) will be called in the next re-rendering (

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