A customizable countdown component for React.
onComplete
callback to consistently trigger, even when the countdown is completed on start. #169
date
prop typing (https://github.com/ndresx/react-countdown/pull/212):
The CountdownProps
interface date
prop was initially set to optional due to an older component that is still being supported in order to follow Semver (for react-countdown@2
). This change will make it a required one. However, since this legacy version was neither utilizing TypeScript nor PropTypes, it's safe to assume that this won't break anything given that the actual countdown component only works by providing this prop while it's also documented this way.stop
the countdown through the APIonStop
callbackovertime
which allows the countdown to become negative (resolves #94)stop()
isStarted()
isStopped()
README.md
(fixes #51)className
prop support https://github.com/ndresx/react-countdown/pull/92
CONTRIBUTING.md
README.md