Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@raddix/use-timeout

gdvu104MIT1.1.1TypeScript support: included

A React hook for handling timeouts

react-hook, react-timeout-hook, react-timeout, react-use-timeout, use-timeout, use-timeout-hook, hook-timeout

readme

useTimeout

The useTimeout hook is used to execute a callback after a specified amount of time. It is similar to the setTimeout function, but it is declarative and can be cancelled.

Please refer to the documentation for more information.