antd的簡單使用(主要參考官網文檔)

antd的使用 一、添加antd 安裝: yarn add antdjavascript 使用: 引入:想在哪一個組件用,就在哪一個組件引入css import {Button} from 'antd'java 引入樣式:react import 'antd/dist/antd.css'web 二、優化antd,按需引入樣式 配置按需引入: (參考官網的在 create-react-app 中使用
相關文章
相關標籤/搜索