0.0.3 • Published 8 years ago

react-countdown-to-future-date v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

react-countdown-to-future-date

npm version

react-countdown-to-future-date is a React component that counts down to a specific future date.

gif

Example of how to use - add this code to your main.js file

var React       = require('react');
var ReactDOM    = require('react-dom');
var countdown  = require('react-countdown-to-future-date');
var rootElement = document.body.getElementById("wrapper");

ReactDOM.render(
  <countdown givenDate = {"November, 17, 2015"}  afterUnmount = {this.afterUnmount}/>,
  rootElement
);

Please note: the date has to be written in the format: month, date, year

Link to the project on Github
Link to the project on npm