安装react脚手架

henry / 2023-05-31 / 原文

1.全局安装:npm install -g create-react-app

2.切换到创建项目的目录,使用命令:create-react-app 项目名

3.切换到项目名

4.启动项目 npm start