useInterval

14/34
DocsAll

Interval Demo

Auto-incrementing counter

0
Running
useInterval(callback, 1000)
Pass null to pause, number to run