updating state without setState

前端 未结 0 623
一个人的身影
一个人的身影 2021-01-29 06:17

I have a form and after I submit that form I want to clear the fields. So first of all I make a copy of state that has the form data to change them immutably, then set the value

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