'Is there a library similar to Vueuse but for React?
Instead of having many dependencies for individual hooks, I am interested in a single curated and tested library like Vueuse, but for React. Does something like this exist?
For instance, in Vue projects I would often use https://vueuse.org/core/useStorage/, https://vueuse.org/core/computedAsync/ and https://vueuse.org/shared/useToggle/, but many others as well.
The list of built in React Hooks seems quite limited: https://reactjs.org/docs/hooks-reference.html
Solution 1:[1]
I found https://ahooks.js.org/ which does what I need
Solution 2:[2]
What about https://github.com/streamich/react-use? Otherwise you could try using @vueuse directly in your react components thank to reactivue!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | tvanbeek |
Solution 2 | CapitaineToinon |