UNPKG

react-use-precision-timer

Version:

A versatile precision timer hook for React. Doubles as a stopwatch.

8 lines (7 loc) 272 B
import { Timer } from './useTimer'; /** * See documentation: [useStopwatch](https://justinmahar.github.io/react-use-precision-timer/useStopwatch) * * Runs indefinitely, counting elapsed time, until paused or stopped. */ export declare const useStopwatch: () => Timer;