vue-hooks-plus
vue-hooks-plus copied to clipboard
High performance & Simplicity ๐งฒ Vue 3 Hooks library
โจ Features
- ๐๐ผโโ๏ธ Easy to learn and use
- ๐ Supports SSR
- ๐ธ Contains a comprehensive collection of basic Hooks
- ๐๏ธ A wide range of application scenarios
- ๐ฆพ Preferred useRequest, Powerful request middle tier
- ๐ช Interactive demo, immersive
- ๐ฏ Written in TypeScript with predictable static types
- ๐ช Support the on-demand load, and reduce the packing volume
- ๐คบ Playground, there's ample scope for one's abilities
- ๐ Perfect test, safe and reliable
๐ฆ Install
npm i vue-hooks-plus
CDN
<script src="https://cdn.jsdelivr.net/npm/vue-hooks-plus/dist/js/index.iife.js"></script>
It will be exposed to global as VueHooks_Plus
๐คนโโ๏ธ Usage
import { useRequest } from 'vue-hooks-plus'
Introduced on demand
import useRequest from 'vue-hooks-plus/es/useRequest'
Auto Import
Vite
import AutoImport from 'unplugin-auto-import/vite'
import { VueHooksPlusResolver } from '@vue-hooks-plus/resolvers'
export const AutoImportDeps = () =>
AutoImport({
imports: ['vue', 'vue-router'],
include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/, /\.md$/],
dts: 'src/auto-imports.d.ts',
resolvers: [VueHooksPlusResolver()],
})
Webpack
const { VueHooksPlusResolver } = require('@vue-hooks-plus/resolvers')
module.exports = {
/* ... */
plugins: [
require('unplugin-auto-import/webpack')({
imports: ['vue', 'vue-router'],
include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/, /\.md$/],
dts: 'src/auto-imports.d.ts',
resolvers: [VueHooksPlusResolver()],
}),
],
}
For other supported tools, please see unplugin-auto-import
Globalization Documentations
Example
๐คฉ Awesome
Template
๐ชด Project Activity
Contributing
Welcome to join us! You can check out the Contributing Guide to learn how to get started.
Contributors
Thanks for all their contributions ๐ !
๐ธ Thanks
This project is heavily inspired by the following awesome projects.
๐ License
MIT License ยฉ 2022-PRESENT YongGit