Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-countdown-moment

miguelmota51MIT0.0.4

React coundown timer text using momentjs.

react, countdown, moment

readme

react-countdown-moment

React countdown timer text using momentjs.

Demo

https://lab.miguelmota.com/react-countdown-moment

Install

npm install react-countdown-moment

Usage

import React from 'react'
import ReactDOM from 'react-dom'
import moment from 'moment'
import Countdown from 'react-countdown-moment'

const endDate = moment().add(2, 'hours')

ReactDOM.render(
  <Countdown endDate={endDate} />,
  document.getElementById('root')
)

License

MIT