react-simple-countdown
A simple countdown component with React <3
install
npm install react-simple-countdown --save
How to use
import component:
;
Props
date
A string width valid date like isoformat or js dates
className
Custom component class
Example
;;;{console;}{// i18n or custom messagesconst messages =days:plural: 'Days'singular: 'Day'hours: 'Hours'mins: 'Min'segs: 'Seg'return<CountDowndate="2015-09-12T00:00:00+00:00"className="MyCoundown"...messagesonEnd=finish/>;};
Custom classNames
Rendered html output for prop className="MyCountdown"
01Days00Hours00Mins10Seg