npm install -g create-react-app
版本校验:create-react-app --version
create-react-app my-app
cd my-app/
npm start
通过http://localhost:3000/查看你的app
使用 npm run build 编译打包程序
React 从零搭建项目 使用 create-react-app脚手架
原文:https://www.cnblogs.com/LChenglong/p/11112568.html