1.constructor
构造器
2.componentWillMount
组件将要挂载
3.render
渲染
4.componentDidMount
组件挂载完毕,组件挂载类型Vue中的onMounted、mounted
5.componentWillUnmount
组件销毁前,组件挂载类型Vue中的onUnmounted、unmounted
6.componentWillReceiveProps
子组件接受新的props时会触发,第一次不触发
新生命周期主要是去掉了3个钩子分别是:componentWillMount、componentWillReceiveProps、compoentsWillUpdate
以上就是我对react组件生命周期的理解,如果文章由于我学识浅薄,导致您发现有严重谬误的地方,请一定在评论中指出,我会在第一时间修正我的文章,以避免误人子弟。