react

Sublime text 3搭建React.js开发环境

emmet package安装

The only place where you can assign this.state is the constructor.   ( 其他地方必须用setState())

User-Defined Components Must Be Capitalized(可以是大写开头的变量,但不能是表达式)

Keys help React identify which items have changed, are added, or are removed. Keys only make sense in the context of the surrounding array

  const todoItems = todos.map((todo, index) =><li key={index}> {todo.text} </li> ); // Only do this if items have no stable IDs 

 

react-router

 路由配置 路由嵌套 内层不可用 '/'

例如

<Route breadcrumbName="机器人管理" path="robot">
  <Route path="/" component={RobotAdmin} />

匹配不到

 

 

 

dva cli

dva g component Users/Users
dva g route users
dva g model users

posted @ 2017-05-03 14:50  三剑客  阅读(233)  评论(0编辑  收藏  举报