摘要: 一、React.createClass 跟 React.Component 的区别在于后者使用了ES6的语法,用constructor构造器来构造默认的属性和状态。 1. React.createClass import React from 'react'; const Contacts = Re 阅读全文
posted @ 2017-11-24 13:49 SKILL·NULL 阅读(323) 评论(0) 推荐(0) 编辑
摘要: react-router 3 文档: https://github.com/ReactTraining/react-router/blob/v3/docs/API.md react-router 4 文档: https://reacttraining.com/react-router 1. reac 阅读全文
posted @ 2017-11-24 11:36 SKILL·NULL 阅读(3933) 评论(0) 推荐(0) 编辑