1.1.1 • Published 5 years ago

react-timer v1.1.1

Weekly downloads
157
License
MIT
Repository
github
Last release
5 years ago

react-timer

npm version

react-timer is a simple timer component using react.

npm.io

Click here for a demo

Install

yarn add react-timer --save

Versions

1.0.0 uses React ^0.13.0

1.0.1 uses React ^0.15.1

1.1.0 uses React ^16.0.0

Use

import Timer from 'react-timer'
import ReactDOM from 'react-dom'
import React, { Component, PropTypes } from 'react'

class TestComponent extends Component {
  /* delay is just the delay on showing the update of the timer */
  const OPTIONS = { prefix: 'seconds elapsed!', delay: 100}
  render () {
    return (
      <div>
        <Timer 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.1.1

5 years ago

1.1.0

5 years ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.6

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago