How to use getDerivedStateFromProps with 2 setStates?

前端 未结 0 444
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 14:54

I have a componentWillReceiveProps method that contains 2 if conditions that determine if the method sets a new state or calls a function. The first

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