React Native中组件的生命周期

组件的生命周期就是一个组件从创建到销毁的整个过程。 一、Mounting 只调用一次 1、定义一个组件的默认属性      getDefaultProps (es5)       static defaultProps (es6) 2、组件初始化     getInitialState (es5)     constructor(props) (es6) 3、组件渲染前 componentWill
相关文章
相关标签/搜索