issues
search
DavidHDev
/
react-haiku
A clean & lightweight collection of React Hooks & Utilities!
https://reacthaiku.dev/
Other
250
stars
54
forks
source link
added useInterval Hook
#29
Closed
aadityarajkumawat
closed
1 year ago
aadityarajkumawat
commented
1 year ago
Added
useInterval
hook
Takes in a callback function as first argument, which runs after a certain delay
Initial delay as second argument
Returns two functions,
start
and
stop
for pausing and restarting the timer.
Added
useInterval
hookstart
andstop
for pausing and restarting the timer.