How can I convert componentWillReceiveProps and componentDidUpdate to useEffect hook?

前端 未结 0 525
再見小時候
再見小時候 2020-12-01 18:54

I have these two methods which I need to convert to useEffect hook.

What I have tried so far doesn\'t work:

  componentWillReceiveProps(nextProps) {
           


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