Nuns Practicing Misanthropy

    @hooks/timeout
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0 • Public • Published

    🎒 @hooks/timeout

    React hook to delay function execution

    NPM version Travis License

    Install

    npm i @hooks/timeout

    Usage

    useTimeout

    useTimeout(callback: Function, delay?: number): void

    Parameters

    callback: Function

    Will be executed when the delay elapses.

    delay?: number

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

    Install

    npm i @hooks/timeout

    DownloadsWeekly Downloads

    3

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    3.65 kB

    Total Files

    6

    Last publish

    Collaborators

    • simmo