admin-vben/packages/hooks
vince 3eb7a8bc6f chore: @vben-core/iconify was renamed @vben-core/icons. Add readme.md for some packages 2024-07-14 22:51:10 +08:00
..
src refactor(project): remove the use of core internal bem syntax 2024-07-14 16:32:13 +08:00
README.md chore: @vben-core/iconify was renamed @vben-core/icons. Add readme.md for some packages 2024-07-14 22:51:10 +08:00
build.config.ts feat: add @vben/hooks and @vben-core/constants 2024-07-13 16:53:22 +08:00
package.json refactor(project): remove the use of core internal bem syntax 2024-07-14 16:32:13 +08:00
tsconfig.json feat: add @vben/hooks and @vben-core/constants 2024-07-13 16:53:22 +08:00

README.md

@vben/hooks

用于多个 app 公用的 hook继承了 @vben-core/hooks 的所有能力。业务上有通用 hooks 可以放在这里。

用法

添加依赖

# 进入目标应用目录,例如 apps/xxxx-app
# cd apps/xxxx-app
pnpm add @vben/hooks --workspace

使用

import { useNamespace } from '@vben/hooks';