docs: add vant use install guide (#10058)

This commit is contained in:
neverland
2021-12-17 20:48:16 +08:00
committed by GitHub
parent a06f2666a1
commit 0e0339ef6b
2 changed files with 31 additions and 1 deletions
@@ -4,6 +4,21 @@
Vant provide some built-in composition APIs, you can directly use these APIs for development.
### Install
Although `@vant/use` is already included in Vant's dependencies, it is still recommended to install this package explicitly:
```shell
# with npm
npm i @vant/use
# with yarn
yarn add @vant/use
# with pnpm
pnpm add @vant/use
```
### Demo
```js