react-countdown-moment

0.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i react-countdown-moment

Weekly Downloads

15

Version

0.0.4

License

MIT

Last publish

Collaborators

  • miguelmota