empty arrow function inside useState in react

后端 未结 0 545
迷失自我
迷失自我 2020-12-12 23:30

why some people use an empty arrow function in useState like this const [email, setEmail] = useState(() => {})?

Any kind of help would be appreciated

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