步骤(次要参照官网流程)
装置antd:
yarn add antd
在页面中应用组件
import { Button } from 'antd';export default () => { return (<Button type="primary">Primary</Button>)}
踩坑
- 引入后无款式
解决:在src/index.js 中增加
import 'antd/dist/antd.css';
步骤(次要参照官网流程)
装置antd:
yarn add antd
在页面中应用组件
import { Button } from 'antd';export default () => { return (<Button type="primary">Primary</Button>)}
踩坑
解决:在src/index.js 中增加
import 'antd/dist/antd.css';