1.2.1 • Published 5 years ago

react-count-down v1.2.1

Weekly downloads
1,361
License
MIT
Repository
github
Last release
5 years ago

react-count-down

npm version

react-count-down is a simple count down component using react.

Installation

yarn add react-count-down

Usage

import Countdown from 'react-count-down'
import ReactDOM from 'react-dom'
import React, { Component, PropTypes } from 'react'

const cb = () => {
  console.log('expired callback')
}

const OPTIONS = {
  endDate: '03/01/2020 10:55 AM',
  prefix: 'until my birthday!',
  cb
}

const TestComponent = () => (
  <div>
    <Countdown options={OPTIONS} />
  </div>
)

ReactDOM.render(<TestComponent />, document.getElementById('root'))

Development

yarn
yarn dev

Test

yarn test

Build

yarn
yarn build

Publish

npm login
npm version patch
git add -A
git push origin master
npm publish

License

MIT

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.5

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago