一、环境搭建

1.安装react-cli脚手架(保证提前安装好Node最新版本)

npm config set registry http://registry.npm.taobao.org/
npm config set sass-binary-site http://npm.taobao.org/mirrors/node-sass
npm isntall -g create-react-app

2.查看react-cli脚手架版本

create-react-app --version

3.初始化工程,工程名不能大写和驼峰

npx create-react-app money-book

 二、工具安装

1、bootstrap样式工具

npm i bootstrap@4.1.3 -S

2、ionicons图标工具安装

npm i react-ionicons@2.1.6 -S

3、react-router-dom路由工具安装

npm i react-router-dom -S

4、axios ajax工具安装

npm i axios@0.18.0 -S

5、recharts图标工具安装

npm i recharts@1.4.1 -S

 

相关文章:

  • 2021-09-02
  • 2022-02-04
  • 2021-05-19
  • 2021-04-30
  • 2021-05-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
猜你喜欢
  • 2021-09-08
  • 2021-11-02
  • 2021-06-26
  • 2021-10-28
  • 2021-10-25
  • 2021-07-17
相关资源
相似解决方案