useDebounce

TypeScript
declare function useDebounce<T>(
  value: T,
  onChange: (val: T) => void,
  timeout?: number,
): [T, (val: T) => void];