Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/usehooks-ts.ts

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
import * as netzo from "https://deno.land/x/netzo@0.5.107/deps/usehooks-ts.ts";

Variables

Custom hook for using either useLayoutEffect or useEffect based on the environment (client-side or server-side).

Functions

Custom hook for handling boolean state with useful utility functions.

Custom hook for handling click events anywhere on the document.

Custom hook for copying text to the clipboard.

f
useCountdown
deprecated

A hook to manage countdown - Legacy interface

Custom hook that manages a counter with increment, decrement, reset, and setCount functionalities.

f
useDarkMode
deprecated

Custom hook that returns the current state of the dark mode.

f
useDebounce
deprecated

Custom hook for debouncing a value.

Hook to create a debounced version of a callback function.

Returns a debounced version of the provided value, along with a function to update it.

A hook to set the document title.

f
useEffectOnce
deprecated
f
useElementSize
deprecated

A hook for creating a memoized event callback.

f
useFetch
deprecated

Custom hook for tracking whether a DOM element is being hovered over.

f
useImageOnLoad
deprecated

Custom hook for handling image loading events and providing related CSS styles.

Custom hook for creating an interval that invokes a callback function at a specified delay.

Custom hook for determining if the code is running on the client side (in the browser).

f
useIsFirstRender
deprecated

Custom hook for determining if the component is currently mounted.

Custom hook for using local storage to persist state across page reloads.

Custom hook for locking and unlocking the body scroll to prevent scrolling.

Custom hook for managing a key-value map state with setter actions.

f
useMediaQuery
deprecated

Custom hook for tracking the state of a media query.

Custom hook for handling clicks outside a specified element.

Custom hook for observing the size of an element using the ResizeObserver API.

Custom hook for dynamically loading scripts and tracking their loading status.

Custom hook for using session storage to persist state across page reloads.

f
useSsr
deprecated

Custom hook for managing and navigating between steps in a multi-step process.

Custom hook for managing ternary (system, dark, light) dark mode with local storage support.

Custom hook for handling timeouts in React components.

Custom hook for managing a boolean toggle state in React components.

Hook that runs a cleanup function when the component is unmounted.

f
useUpdateEffect
deprecated

Interfaces

Represents the actions available to interact with the map state.

Represents the state and control functions of a debounced callback. Subsequent calls to the debounced function return the result of the last invocation. Note: If there are no previous invocations, the result will be undefined. Ensure proper handling in your code.

Configuration options for controlling the behavior of the debounced function.

Type Aliases

Represents the type for either a Map or an array of key-value pairs.