在终端执行以下命令创建项目:

 

1、指定创建的项目位置(这里以桌面为例)

cd Desktop

 

2、创建 React 项目

npx create-react-app my-app

 

3、进入项目并启动

cd my-app
npm start

可以直接将项目文件拖入终端,输入 npm start 按回车启动

 使用 create-react-app 快速构建 React 开发环境

 

相关文章:

  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-11-10
猜你喜欢
  • 2022-12-23
  • 2021-10-27
  • 2021-09-06
  • 2021-12-09
  • 2022-12-23
  • 2021-08-31
相关资源
相似解决方案