xiaowin-ui
v1.0.1
Published
React Personal component library
Downloads
3
Readme
文档地址放在开头
[文档传送门]](https://1061603885.github.io/xiaowin-ui/)
使用 npm 或 yarn 安装
npm install xiaowin-ui
yarn add xiaowin-ui
自动按需加载
使用 babel-plugin-import 优化引入方式,如下:
import { Button } from 'xiaowin-ui'; // 与上述示例等价
ReactDOM.render(<Button type="primary">按钮</Button>, mountNode);
安装 babel-plugin-import
yarn add babel-plugin-import --dev
配置.babelrc
或 babel-loader
{
"plugins": [
[
"import",
{
"libraryName": "@zzzzw/happy-ui",
"libraryDirectory": "esm", // default: lib
"style": true // or 'css'
}
]
]
}