react antd插件引入

antd ui

配置文件 babel-loader下面引入antd

plugins: [["import", { libraryName: "antd", style: "css" }]]

页面上就可以按需引用

import { DatePicker } from 'antd';

  

转载于:https://www.cnblogs.com/fm060/p/7736383.html

你可能感兴趣的:(react antd插件引入)