@mzaleski/use-timer

React hook that returns a timer's remaining span as a formatted time string, e.g. 65 -> '1:05', as well as numerically.

Browse on unpkg