此文根据 FungLeo 专栏博客 https://blog.csdn.net/FungLeo/column/info/24249 搭建 React 项目
Step 1:安装 create-react-app 脚手架
npm i create-react-app -g
Step 2:创建项目
create-react-app demo
如图,就创建成功了:
Step 3:自定义配置
进入项目目录,执行:
npm run eject
若此时控制台如图报错,则需要将此项目与远程仓库相关联