react-countdown-timer

1.0.3 • Public • Published

react-countdown-timer

A timer component for React that counts down to zero for a specified number of milliseconds.

props

initialTimeRemaining: Number The time remaining for the countdown (in ms).

interval: Number (optional -- default: 1000ms) The time between timer ticks (in ms).

formatFunc(timeRemaining): Function (optional) A function that formats the timeRemaining.

tickCallback(timeRemaining): Function (optional) A function to call each tick.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    58
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    58
  • 1.0.2
    5
  • 1.0.1
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i react-countdown-timer

Weekly Downloads

66

Version

1.0.3

License

MIT

Last publish

Collaborators

  • robinvierich