useDebounce

Hook

A hook that debounces a callback function.

Usage

const debouncedSave = useDebounce(saveFunction, 300)

Props

callback

type

(...args: T) => S

delay?

type

number