How does this closure make componentDidUpdate behave like useEffect?

前端 未结 0 1404
天命终不由人
天命终不由人 2020-12-02 03:47

I was reading Dan Abramov\'s article: A Complete Guide to useEffect, and in the section: Each Render Has Its Own… Everything, there are two examples, first uses useEff

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