UNPKG

react-timer-hook

Version:

React timer hook is a custom react hook built to handle timers(countdown), stopwatch and time logic/state in your react component.

7 lines (6 loc) 280 B
import { FormattedTimeFromMillisecondsType } from './utils/Time'; export type useTimeSettingsType = { format?: '12-hour'; interval?: number; }; export default function useTime({ format, interval: customInterval }?: useTimeSettingsType): FormattedTimeFromMillisecondsType;