SnipNest
SnippetsExtensionsGitHub

Categories

Hook10
  1. Snippets
  2. React
  3. Hook

useClickOutside

Detect Outside Clicks. Perfect for closing modals or dropdowns when clicking outside, using a custom useClickOutside hook for better user experience

useDebouncedValue

Debounces a value by a specified delay.

useDimensions

Gets live dimensions of a given container (ref of container).

useFetch

useFetch hook abstracts repetitive logic, streamlining API calls and managing state elegantly.

useForm

useForm hook simplifies handling forms in React.

useIntersectionObserver

Observes the intersection of an element with the viewport.

useIsMounted

Checks if a component is mounted.

useLocalStorage

Stores, retrieves, and deletes data in the browser's local storage.

useTimeout

Executes a function after a given number of milliseconds.

useViewportSize

Tracks the size of the viewport.

SnipNest

Open-source code snippet collection

SnipNest

AboutRepositoryLicense

Docs

APIContributing
Built by Bruno and the contributors.