详细用法
全局安装
npm i create-react-app -g创建应用(以下其一即可)
npx create-react-app my-appyarn create create-react-app my-appnpm 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
