/react-interval-hook

React hook for using self-correcting setInterval, augmented by management methods (start, stop, isActive)

Primary LanguageTypeScriptMIT LicenseMIT

⌚ React Interval Hook

React hook for using self-correcting setInterval, augmented by management methods

Build Status codecov npm type definitions npm bundle size npm GitHub

  • Self-correcting (explanation)
  • Manageable (start, stop, isActive)
  • Thoroughly tested

Install

yarn add react-interval-hook

or

npm install --save react-interval-hook

⚠️ New repository

This package has been moved to Minwork's React Libraries which is a common place for different react hooks and components.