• This is a custom React hook in a format suggest by Dan Abramov in a blog post here: https://overreacted.io/making-setinterval-declarative-with-react-hooks/. It allows setInterval to be used declaratively in functional React components.

    Parameters

    • callback: (() => void)
        • (): void
        • Returns void

    • delay: number

    Returns void