React/React Native 的 ES5 ES6 写法对照表

  推荐人:Trinea
React Native 的 ES5 ES6 混用会让新手不知所然,如:

require VS import

React.createClass VS extends Component

module.exports VS export default

getInitialState VS constructor

Apps
About Me
Google+: Trinea trinea
GitHub: Trinea