CatalogAll hooks
139 total14 categories

All hooks

Unified index — filter by difficulty, spot SSR-safe hooks, and see what you copy most (counts stay in this browser only).

Difficulty

Most copied

local only

Copy an import line, example, or hook source from any guide — popular hooks for this browser show up here. Nothing is sent to a server.

State Hooks

Manage local component state with less boilerplate — toggles, counters, lists, maps, and controlled patterns.

Performance Hooks

Debounce, throttle, stable callbacks, and render diagnostics without stale closures.

Event Hooks

Window, document, keyboard, hover, focus, and outside-click handlers with automatic cleanup.

Browser Hooks

SSR-safe wrappers around window, navigator, media queries, geolocation, and more.

DOM Hooks

Measure elements, observe visibility, scroll, lock body scroll, and trap focus.

Storage Hooks

Typed localStorage and sessionStorage with JSON, defaults, and cross-tab sync.

Timer Hooks

Timeouts, intervals, countdowns, stopwatches, and idle detection with pause/resume.

Async & API Hooks

Fetch data, mutations, polling, pagination, retries, and race-safe async work.

Form Hooks

Values, validation, touched fields, dirty state, and async submit helpers.

UI Hooks

Headless primitives for disclosure, modals, tabs, menus, tooltips, and toasts.

Media Hooks

Audio, video, camera, microphone, and MediaRecorder with proper stream cleanup.

Network & Realtime

WebSocket, SSE, and reconnecting realtime clients — you pass the URL.

Auth Hooks

Generic auth provider integration: user, roles, permissions — no vendor lock-in.

Utility Hooks

Clipboard, document title, lifecycle helpers, fullscreen, and more.