# React开发技术

采用React开发单页面(SPA)的架构方式的项目。

基于React的项目的时候,我们需要使用各种各样的库来完成我们的项目开发。

# React开发相关栈

# React技术栈

名称 版本 大小 安装方式 描述
react (opens new window) react-status (opens new window) react-size npm install react React核心
react-dom (opens new window) react-dom-status (opens new window) react-dom-size npm install react-dom ReactDOM相关操作
react-router-dom (opens new window) react-router-dom-status (opens new window) react-router-dom-size npm install react-router-dom React路由相关
redux (opens new window) redux-status (opens new window) redux-size npm install redux react-redux Redux状态管理
immutable-js (opens new window) immutable-js-status (opens new window) immutable-js-size npm install immutable redux-immutable Immutable Data 就是一旦创建,就不能再被更改的数据。

# 开发环境相关

名称 版本 大小 安装方式 描述
webpack (opens new window) webpack-status (opens new window) webpack-size npm install webpack 模块化打包工具
webpack-dev-server (opens new window) webpack-dev-server-status (opens new window) webpack-dev-server-size npm install webpack-dev-server webpack服务器环境
babel (opens new window) babel-status (opens new window) babel-size npm install babel-loader babel-core JS语法编译器
less (opens new window) less-status (opens new window) less-size npm install less css预处理
sass (opens new window) sass-status (opens new window) sass-size npm install sass css预处理
u-reset.css (opens new window) u-reset.css-status (opens new window) u-reset.css-size npm install u-reset.css 一个简洁的重置样式库
whatwg-fetch (opens new window) whatwg-fetch-status (opens new window) whatwg-fetch-size npm install whatwg-fetch Fetch API
axios (opens new window) axios-status (opens new window) axios-size npm install axios Axios 是一个基于 promise 的 HTTP 库

# 第三方插件

名称 版本 大小 安装 描述
react-swipe react-swipe-status (opens new window) react-swipe-size npm install swipe-js-iso react-swipe 轮播图组件

# 组件库

名称[文档] 版本 大小 安装 描述
Ant Design (opens new window) antd-status (opens new window) antd-size npm install antd --save 用于开发和服务于企业级中后台产品
Ant Design Mobile (opens new window) antd-mobile-status (opens new window) antd-mobile-size npm install antd-mobile --save 是 Ant Design 的移动规范的 React 实现
AntV G2 (opens new window) g2-status (opens new window) g2-size npm install @antv/g2 --save 数据驱动的高交互可视化图形语法
AntV G6 (opens new window) g6-status (opens new window) g6-size npm install @antv/g6 --save 专注解决流程与关系分析的图表库
AntV F2 (opens new window) f2-status (opens new window) f2-size nnpm install @antv/f2 --save 适于对性能、体积、扩展性要求严苛场景下使用的移动端图表库
AntV L7 (opens new window) g2-status (opens new window) l7-size nnpm install @antv/g2 --save 地理空间数据可视化框架,易用易扩展。