Convert componentWillReceiveProps to getDerivedPropsFromState

后端 未结 0 1265
渐次进展
渐次进展 2020-12-08 02:04

I just want to know how I convert this function into the new one react recommends

 componentWillReceiveProps(nextProps) {
        this.onAuthComplete(nextProp         


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