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

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

$ cnpm install -g create-react-app
$ create-react-app my-app
$ cd my-app/
$ npm start

完成后在浏览器中输入:http://localhost:3000