React Native 之 State 的ES5 与ES6 写法区别
2017-03-29 17:20
627 查看
ES 6 的写法
constructor(props) {
super(props);
this.state = {
style:{}
};
}
ES5的写法
getInitialState:function() {
return {
style:{}
};
}
constructor(props) {
super(props);
this.state = {
style:{}
};
}
ES5的写法
getInitialState:function() {
return {
style:{}
};
}
相关文章推荐
- React中ES5与ES6写法的区别总结
- React,React Native中的es5和es6写法对照
- React/React Native 的ES5 ES6写法对照
- react-native ES5与ES6写法对照表
- 如何将react/react native中的ES5写法转化成ES6?
- React ES6与ES5写法的区别
- React.js中ES6 和 ES5写法的一些差别
- React的ES5与ES6写法对比
- [Wondgirl]从零开始学React Native之ES5 ES6语法对比(七)
- React使用ES6和ES5写法对比
- react的ES5与ES6写法的不同(一)
- React中prop和state的区别
- RN的ES5和ES6的写法对照表
- react,react native,webpack,ES6,node.js----------今天上午学了一下node.js
- 混合开发的大趋势之一React Native State (状态),Style(样式)
- 运行React Native示例出现null is not an object (evaluating 'this.state.text')
- React/React Native 的ES5 ES6写法对照表
- React/React Native 的ES5 ES6写法对照表
- React/React Native 的ES5 ES6写法对照表-b
- React Native es6继承(Component例子)