React Sticky Timer
Introduction
A simple countdown sticky that sticks to the top. demo
Dependencies
Install
npm install --save react-sticky-timer
Usage
const units = seconds: '' minutes: ':' hours: ':' days: 'day' years: 'year' months: 'month' ;
<StickyTimer textMessage=thisstatemessage end= units=units countDownMessage=thisstatecountDownMessage />
All options
static propTypes = end: PropTypesobject units: PropTypesobject textMessage: PropTypesstring countDownMessage: PropTypesstring styleSticky: PropTypesobject styleText: PropTypesobject styleTimer: PropTypesobject classNameText: PropTypesstring classNameTimer: PropTypesstring classNameSticky: PropTypesstring ;
Help
Refer to App.js
Improvement
- Test/Test coverage report
- CI/CD process
- Remove dependency from moment
Any feedbacks or contributions are welcome!