reactNative 组件

reactNative 组件的实现方式: 1,ES6:推荐 2,ES5: 3,函数式组件:无状态的,不能使用this;属性是通过参数传递 组件的生命周期: 从创建开始到被卸载结束;   生命周期方法和三种生命周期状态: getDefaultProps:es6,定义组件的默认属性 (es6 使用static defaultProps方法) 组件装载时的状态:mounting 对应生命周期方法: ge
相关文章
相关标签/搜索