2021
09-10
09-10
React引入antd-mobile+postcss搭建移动端
安装antd-mobile全局引入npminstallantd-mobile--save在App.js引入cssimport'antd-mobile/dist/antd-mobile.css';在jsx使用antd组件importReactfrom'react';import{Button}from'antd-mobile';constindex=()=>{return(<div><Buttontype="primary">primary</Button></div>);}exportdefaultindex;按需引入npminstallbabel-plugin-import-s安装插件,覆盖webpack配置cust...
继续阅读 >