react项目引入antd框架,以及遇到的一些坑 | 您所在的位置:网站首页 › react引入less › react项目引入antd框架,以及遇到的一些坑 |
1,用create-react-app创建项目 create-react-app demo //demo为项目名称2.在项目中安装antd npm install -D antd3.安装 babel-plugin-import npm install babel-plugin-import --save4.修改package.json文件,在根目录下 "babel": { "plugins": [ [ "import", { "librayName": "antd", "style": true } ] ] }
|
CopyRight 2018-2019 实验室设备网 版权所有 |