react-timer
react-timer is a simple timer component using react.
Install
npm install react-timer --save
Versions
1.0.0
uses React ^0.13.0
1.0.1
uses React ^0.15.1
Use
import Dropdown from 'react-timer'
import ReactDOM from 'react-dom'
import React, { Component, PropTypes } from 'react'
class TestComponent extends Component {
let OPTIONS = { prefix: 'seconds elapsed!', delay: 100}
render () {
return (
<div>
<Timer options={OPTIONS} />
</div>
)
}
}
ReactDOM.render( <TestComponent />, document.getElementById('root') )
Development
npm install
npm run build
npm test
npm start
License
MIT