流行的开源React UI组件库 http://www.material-ui.com/#/
组件总览 - Ant Designhttps://ant.design/components/overview-cn/
安装方式:yarn add antd
## 按需加载antd库样式 1. 安装:yarn add react-app-rewired customize-cra 2. 修改 package.json 中文件"scripts": {"start": "react-app-rewired start","build": "react-app-rewired build","test": "react-app-rewired test",} 3. 安装:yarn add babel-plugin-import 4. 在项目根目录创建一个 config-overrides.js 用于修改默认配置。 5. config-overrides.js 文件 const { override, fixBabelImports } = require('customize-cra');module.exports = override( fixBabelImports('import', {libraryName: 'antd',libraryDirectory: 'es',style: 'css', }), );