react搭建一个框架(react-redux-axios-antd Designs)

废话不多说,先给一个github案例:前往..

1.create-react-app <文件名>

安装router:npm  i react-router-dom -S;

npm install -S react-router;

npm i redux react-redux react-thunk redux-logger -S

 2.安装redux:

npm install --save redux;
npm install --save react-redux;

npm install --save-dev redux-devtool; 

3.安装axios:

npm install axios -S

4.安装ant Design

npm install antd-mobile --save

 

转载于:https://www.cnblogs.com/yunshangwuyou/p/9516947.html

你可能感兴趣的:(react搭建一个框架(react-redux-axios-antd Designs))