useInterval
Executes callback
every delay
milliseconds.
- @param
callback
- A function to execute. - @param
delay
- The delay in milliseconds. - @param
options
- Configurable options. - @returns void
Example
const livePriceUpdate = () => { ... }
useInterval(livePriceUpdate, 1000);