- 安装
yarn add antd
- 引入
import { Button } from 'antd';
- 使用
<Button type="primary">Primary Button</Button>
UI组件库
element-React
ant-design
Vant(移动端的组件库)
按需导入
yarn eject
// 暴露脚手架中的配置
yarn add antd
import { Button } from 'antd';
<Button type="primary">Primary Button</Button>
element-React
ant-design
Vant(移动端的组件库)
yarn eject
// 暴露脚手架中的配置