useRafInterval
API
import useRafInterval from '@restart/hooks/useRafInterval'
useRafInterval
(fn: () => void, ms: number) => voidParameters
fn
() => voidms
number
Return Value void
import useRafInterval from '@restart/hooks/useRafInterval'
useRafInterval
(fn: () => void, ms: number) => voidfn
() => voidms
number