JSPM

@hooks/interval

0.1.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q53741F
    • License MIT

    React hook to wrap setInterval

    Package Exports

    • @hooks/interval

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hooks/interval) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    🎒 @hooks/interval

    React hook to wrap setInterval

    NPM version Travis License

    Install

    npm i @hooks/interval

    Usage

    useInterval

    useInterval(callback: Function, interval?: number | null): void

    Parameters

    callback: Function

    Will be executed each time the interval elapses.

    interval?: number | null

    Length of time in milliseconds before the callback is executed. Providing null will clear the interval.