react-timer is a simple timer component using react.
yarn add react-timer --save
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') )
yarn
yarn dev
yarn test
yarn
yarn build
npm login
npm version patch
git add -A
git push origin master
npm publish