React组件生命周期

旧版本 一、挂载阶段 组件将要挂载:componentWillMount 组件挂载完成:componentDidMount constructor(构造函数)–>componentWillMount(组件将要挂载)–>render(数据渲染)–>componentDidMount(组件挂载完成) 二、更新阶段 父组件中改变了props传值时触发的函数:componentWillReceivePro
相关文章
相关标签/搜索