Size
0.33 kb
useTimeout
setTimeout, reactified.
Installation
Usage
Set a timeout:
Pause the timeout by setting the delay to null
:
API Reference
UseTimeoutReturn
The return value of the useTimeout hook.
Prop | Type | Default |
---|---|---|
reset | () => void | - |
cancel | () => void | - |
isPending | boolean | - |