Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 434 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 434 Bytes

react-moment-countdown

An unopinionated countdown component for React using moment.js.

Installation

$ npm install react-moment-countdown --save

How to use

import React from 'react';
import ReactMomentCountDown from 'react-moment-countdown';

const CountDownComponent = (props) => {
  const dateInFuture = new Date('2017-12-31');

  return(
    <ReactMomentCountDown toDate={ dateInFuture }>
  );
};