New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@hooks/timeout

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hooks/timeout

React hook to delay function execution

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

🎒 @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.

Keywords

react

FAQs

Package last updated on 28 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts