React hook to delay function execution
npm i @hooks/timeout
useTimeout(callback: Function, delay?: number): void
Will be executed when the delay
elapses.
Length of time in milliseconds before the callback
is executed. Providing null
will clear the timeout.