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.tsand createhooks/useYourHook/demo/index.vueand createhooks/useYourHook/index.md, runpnpm metadata && pnpm devto preview demo and start coding you hook and create documentation for your hook - Create
hooks/useYourHook/__tests__/index.test.ts, runpnpm test:watchto start the test runner and start writing tests for your hook pnpm test:coveragetests coverage at 100%- Export your hook from
src/hooks/index.tsand add your hook toREADME.md