UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

5 lines (4 loc) 213 B
import { SetStateAction } from 'react'; export declare function useDebouncedState<T = any>(defaultValue: T, wait: number, options?: { leading: boolean; }): readonly [T, (newValue: SetStateAction<T>) => void];