安装react-app脚手架

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

3.打包发布

npm run build

npm insatll -g serve

serve build

访问:http://localhost:5000

 

posted @ 2019-10-20 21:51  小白咚  阅读(1145)  评论(0编辑  收藏  举报