# 安装官方工具
npm install -g create-react-app
# 执行安装命令
npx create-react-app react-app
# 若要使用ts开发
npx create-react-app ts-react-app --template typescript
# 进入项目目录
cd react-app
# 本地运行
npm start