
npm install reactnexthooksh
npm install reactnexhook
`
or
`sh
yarn add reactnexthook
`
🛠Hooks Overview
Here's a quick overview of the available hooks in this library:
| Hooks | Description |
| ------ | ------ |
| useLocalStorage | Sync state with localStorage. |
| useDebounce | Debounce a value to delay updates. |
| useFetch | Fetch data from an API with loading and error handling.|
| useToggle | Manage a boolean state for toggling. |
| usePrevious | Track the previous value of a state or prop. |
| useEventListener | Add and remove event listeners. |
| useOnClickOutside | Detect clicks outside a specific element. |
| useMediaQuery | Handle media queries for responsiveness. |
| useIntersectionObserver | Monitor the visibility of an element. |
| useEventCallback | Ensure a callback function is stable and not recreated on every render. |
> Note: --these are just few hooks` not the entire list.