In the normal development process, we need more than a simple CLI. We may need to install Redux, react-router and eslint etc. the react-cli-awesome
will help you solve these problems
npm install -g react-cli-awesome
yarn add react-cli-awesome -g
Download the offical tempalte from remote.
react-cli init <your-project-name>
(i). React
, You can npm run dev||npm run build
to server your project with webpack+babel
;
(ii). React Component
,that means you want your project to exported to a react component.So there is only Babel
for you.
React | React Component |
---|---|
webpack+babel | babel |