【React】使用 create-react-app 快速构建 React 开发环境

create-react-app 是来自于 Facebook,通过该命令我们无需配置就能快速构建 React 开发环境。

create-react-app 自动创建的项目是基于 Webpack + ES6 。

1.$ cnpm install -g create-react-app

2.$ create-react-app my-app

 

3.$ cd my-app/

$ npm start

 

项目目录

create-react-app 执行慢的解决方法

 

 

posted @ 2017-07-14 22:07  乘客  阅读(1200)  评论(0编辑  收藏  举报