how to use setState correctly

后端 未结 0 1121
野性不改
野性不改 2021-02-06 12:47

I\'m learning react, according to react doc, i found there are two forms of setState:

  • setState({someState: someValue}) #form1
  • setState((preSta
相关标签:
回答
  • 消灭零回复
提交回复
热议问题