react-countdown-to-future-date

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i react-countdown-to-future-date

Weekly Downloads

1

Version

0.0.3

License

ISC

Last publish

Collaborators

  • naaz