详细用法
全局安装
npm i create-react-app -g
创建应用(以下其一即可)
npx create-react-app my-app
yarn create create-react-app my-app
npm i create-react-app my-app
将封装在
create-react-app
中的配置全部反编译到当前项目中,使用户完全取得webpack
文件的控制权npm run eject
或yarn eject
你不会想要用到这个命令的
运行测试
npm run test
或yarn test
编译
npm run build
或yarn build
运行程序
1
2cd my-app
npm/yarn start