Skip to content

All 44 React hooks

The complete catalogue, grouped by what you are trying to do. Every hook has a live demo, a copy-paste example and its full TypeScript signature — and every one is dependency-free and SSR-safe.

Common questions

How many hooks are in @danixsoft/hooks?

There are 44 hooks, grouped into 5 categories: State & Storage (10), Forms & Data (4), DOM & Browser (13), Timers & Lifecycle (9), Sensors & Device (8).

Do I have to install all of them?

No. The package is tree-shakeable with sideEffects set to false, so your bundler includes only the hooks you actually import. Importing one hook costs roughly the size of that one hook.

Are all of these hooks SSR-safe?

Yes. Every hook that touches a browser API guards it behind a typeof window check and returns a stable value during server rendering, so they work in Next.js and Remix without hydration mismatches.

What does it cost?

Nothing. The library is free and open source under the MIT licence, for personal and commercial use alike.