Skip to content

A simple count up timer for react version greater than 16

License

Notifications You must be signed in to change notification settings

devitcf/react-countup-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple count up timer for react version greater than 16

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published