react中使用Ant Design

先安装 antd

npm install antd -S

yarn add antd -S

cnpm install antd -S

 

在index.js入口文件中引入

import 'antd/dist/antd.css'
 
 

在页面中使用

 
import { Form, Input, Button } from 'antd'
 
<Button type="primary">登录</Button>
 
 
 
 
posted @ 2020-10-22 17:33  起风了1573  阅读(160)  评论(0)    收藏  举报