vueuse
usehooks
Our great sponsors
vueuse | usehooks | |
---|---|---|
86 | 12 | |
18,723 | 8,487 | |
2.6% | 3.5% | |
9.5 | 8.4 | |
7 days ago | 22 days ago | |
TypeScript | MDX | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vueuse
-
Ask HN: Learn React or Vue?
My opinion: Vue, specifically the Vue 3 Composition API. Most of your app state should come from computed() values. Bookmark https://vueuse.org and come back to it often. Go through VueUse's source (the docs for each function link to their source): you'll be surprised at how simple most of it is, and it stands as documentation of best practices for using the composition API in general.
- Useful Vue Utils with VueUse
-
Implementing Tailwind CSS Dark Mode Toggle with No Flicker
Now, let’s talk about Vue! Once again, we’ll use an external library to handle dark mode simply and quickly. In this case, the library is called VueUse, and you can install it using the command npm i @vueuse/core --save.
-
useHooks – A collection of Server Component safe React Hooks
Great library. Could use some improvements as said by other (tree shaking, add jsdocs, etc…). Just a quick reminder for the vuejs devs out there we have https://vueuse.org/
-
UseHooks – A Collection of Server Component Safe React Hooks
Yeah, I figured useHooks was created without knowing about VueUse, but thought they might have become aware of it sense then. It makes sense, because though the code is heading in the direction of VueUse in terms of being maintained and well rounded, the structure of useHooks is quite a bit different. It has the code alongside the Markdown: https://github.com/vueuse/vueuse/tree/main/packages/integrat...
- VueUse Full Screen issue
-
Sending notifications to the browser from Vue?
Demo: https://github.com/vueuse/vueuse/blob/main/packages/core/useWebNotification/demo.vue
-
First Time at Vue
Also take a look at https://vueuse.org/ which might save you some lines :)
- Composition API vs. Options API
-
Why isn’t everyone using <script setup>?
For what it's worth my timeframe is very similar to yours! Started in 2019, no React / Angular. I think looking at great codebases like [VueUse](https://github.com/vueuse/vueuse) shows off the best of composition API.
usehooks
-
Best Next.js Libraries and Tools in 2024
Link: https://usehooks.com/
-
How to Track Previous State in React
In this approach (adapted from the usehooks package), we'll define a state variable currentCounter to track counter's value:
-
Adding a real feature to a project 🧛
The very first one I came across was a package called useHooks. It looked like a really cool package with tonnes of hooks to use, and useQueue was one of them.
-
Thoughts on useEffect ?
there are a bunch of library custom hooks, sometimes they encapsulate logic better, you should prefer them or build your own instead.
- useHooks – A collection of Server Component safe React Hooks
-
UseHooks – A Collection of Server Component Safe React Hooks
I saw "useDebounce" and thought "what the hell does debounce have anything to do with react render cycle?". When I check the code, `useDebounce` does... I don't even know what it does, delayed set state?
https://github.com/uidotdev/usehooks/blob/380e83fa267157832e...
What are some alternatives?
svelte-actions - prototype official actions for Svelte
usehooks-ts - React hook library, ready to use, written in Typescript.
vue-composable - Vue composition-api composable components. i18n, validation, pagination, fetch, etc. +50 different composables
30-Days-Of-React - 30 Days of React challenge is a step by step guide to learn React in 30 days. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
react-select - The Select Component for React.js
use-what-changed - A React hook and an easy to use babel-pugin to debug various React official hooks
vuex - 🗃️ Centralized State Management for Vue.js.
awesome-react-hooks - A curated list about React Hooks
vitesse - 🏕 Opinionated Vite + Vue Starter Template
react-use - React Hooks — 👍
Quasar Framework - Quasar Framework - Build high-performance VueJS user interfaces in record time
web - React hooks done right, for browser and SSR.