0.0.3 • Published 8 years ago
react-countdown-to-future-date v0.0.3
react-countdown-to-future-date
react-countdown-to-future-date is a React component that counts down to a specific future date.
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