📜  w 组件确实更新和挂载之间的区别 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:37.641000             🧑  作者: Mango

代码示例1
componentDidMount() : invoked immediately after a component is mounted (inserted into the DOM tree) 
componentDidUpdate(prevProps, prevState, snapshot) : is invoked immediately after updating occurs.
This method is not called for the initial render.