1、先安装node,js

2、node -v

3、npm -v

4、npm install -g create-react-app   然后查看create-react-app版本

用create-react-app搭建react项目

5、create-react-app mynews  给react应用命名,你可以取另外一个名字,然后出现success就是成功了!

用create-react-app搭建react项目

6、然后cd mynews  并且npm start  可以在http://localhost:3000/看到效果

  • npm start 是启动应用
  • npm test 是运行所有测试
  • npm run build 是构建项目的产品文件

用create-react-app搭建react项目


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2021-12-19
  • 2018-11-27
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2022-02-27
  • 2021-07-18
  • 2022-01-01
  • 2020-12-18
  • 2021-04-19
  • 2021-04-07
相关资源
相似解决方案