1.create-react-app是react官方提供的用于搭建基于react+webpack+es6项目的脚手架

2.操作:

npm install -g create-react-app :全局下载工具

create-react-app react-admin :下载模板项目

cd react-admin

npm start

访问:localhost:8080

安装react-app脚手架

安装react-app脚手架

3.打包发布

npm run build

npm insatll -g serve

serve build

访问:http://localhost:5000

 

相关文章:

  • 2021-04-01
  • 2021-07-17
  • 2022-01-07
  • 2022-02-12
猜你喜欢
  • 2021-06-18
  • 2021-04-15
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
相关资源
相似解决方案