React hook not setting state until click submit button twice

前端 未结 0 1289
庸人自扰
庸人自扰 2021-01-15 16:45

For some reason, a state is not being set until clicking on the submit button twice when submitting my form. Here is my state:

const [state, setState] = useSt         


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