Appearance
v3-use
v3-use is a high-quality and reliable Vue3 Hooks library.
Install
$ npm install --save v3-use
# or
$ yarn add v3-use
# or
$ pnpm add v3-use
$ npm install --save v3-use
# or
$ yarn add v3-use
# or
$ pnpm add v3-use
Usage
import { useBoolean } from 'v3-use'
import { useBoolean } from 'v3-use'
Development Workflow
- Create
hooks/useYourHook/index.ts
and createhooks/useYourHook/demo/index.vue
and createhooks/useYourHook/index.md
, runpnpm metadata && pnpm dev
to preview demo and start coding you hook and create documentation for your hook - Create
hooks/useYourHook/__tests__/index.test.ts
, runpnpm test:watch
to start the test runner and start writing tests for your hook pnpm test:coverage
tests coverage at 100%- Export your hook from
src/hooks/index.ts
and add your hook toREADME.md