之前a-hooks:https://ahooks.js.org/,比react-use 精简好用。但是没有vue版本的。

网上有个人实现的:https://github.com/dewfall123/ahooks-vue

 

但是vue,还是选择vue-use好点。

VueUse 是一个基于 Composition API 的实用函数集, 与 Composition API 的配合相得益彰

VueUse 的作者是 Anthony Fu , Core team member of Vue, Nuxt and Vite.

https://github.com/vueuse/vueuse

This project is heavily inspired by the following awesome projects.

而且有祖师爷加持

1.jpg

但是用起来,感觉还是a-hooks这个库用的最顺心,可能antD 加持吧。

 

 

转载本站文章《vue2升级vue3:vue3 hooks库选用》,
请注明出处:https://www.zhoulujun.cn/html/webfront/ECMAScript/vue3/8865.html