Skip to content

每天进步一点点,记录学习React的经历

常用生命周期

componentDidMount 组件渲染后执行 componentDidUpdate 数据修改完成 componentWillUnmount 组件卸载前执行

不常用生命周期

shouldComponentUpdate 返回 false,则不会调用 render()。