状态没有立即反映变化,因此我不得不玩onSubmit两次才能提交表单
If you want to perform an action on state update, you need to useuseEffect hook, much like using componentDidUpdate in class components since the setter returned by useState这里是我被捕获的地方,在reason工具中,上面的状态被设置为false,但是在noErrors变量下面仍然读取false,在所有