parsec-hooks
v1.0.19
Published
秒差距前端常用的hooks工具
Downloads
59
Readme
parsec-hooks
秒差距前端常用的 hooks 工具
Install
npm install --save parsec-hooks
Config
在文件babel.config.js 下添加配置
{
libraryName: 'parsec-hooks',
camel2DashComponentName: false,
customName: name => {
if (/^(use)/.test(name)) {
return `parsec-hooks/lib/${name
.replace(/^(use)/, '')
.replace(/^\S/, s => s.toLowerCase())}Hooks`;
} else {
return `parsec-hooks/lib/utils/${name}`;
}
}
}
License
MIT © mushan0x0