react项目搭建

1.全局安装脚手架

npm install -g create-react-app

2、创建项目,安装依赖

create-react-app my-react-app

3、进入项目

cd my-react-app

4、启动项目

npm start

5.首先安装路由组件:react-router-dom

npm install react-router-dom --save-dev

6.安装 redux 的第三方模块:

npm install redux --save

npm install react-redux --save

7.安装axios

npm i axios --s

8.安装 antd

npm i antd --s

9.安装sass

npm node-sass -D
posted @ 2020-08-05 11:25  若白衣卿相  阅读(187)  评论(0编辑  收藏  举报