react-countup-timer
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

React-countup-timer

A simple count up timer for react version greater than 16.

Installation

npm install react-countup-timer

Usage

import moment from "moment";
import CountUpTimer from "react-countup-timer";

<CountUpTimer startTime={moment().unix()}/>

Start the timer by providing the startTime, likewise, set startTime to undefined to stop the timer.

Props

startTime?: number | undefined => The start time in the format of unix timestamp.

Readme

Keywords

Package Sidebar

Install

npm i react-countup-timer

Weekly Downloads

20

Version

1.0.1

License

MIT

Unpacked Size

1.31 MB

Total Files

14

Last publish

Collaborators

  • devitcf