Why i need call an arrow function for update state in this case?

后端 未结 0 1916
暗喜
暗喜 2020-12-11 10:12

I have this code for validate password and email:

 const [register, setRegister] = useState({
        email: \'\',
        password: \'\',
        error: \'\'         


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