react 入门

1. react 安装

npm install -g create-react-app

create-react-app 项目名

cd 项目名

npm start

2.  npm run eject 将所有配置文件和传递依赖直接放入项目中

 

 

【参考文献】 https://github.com/facebookincubator/create-react-app

【参考文献】http://www.ruanyifeng.com/blog/2015/03/react.html

posted @ 2017-04-06 13:23  雪儿_1990  阅读(100)  评论(0编辑  收藏  举报