react-metronome
v1.0.5
Published
tick tock
Downloads
5
Readme
react-metronome
npm install react-metronome --save
tick-tock as a component :)
import {Metronome} from 'react-metronome';
current api:
<Metronome period={1000} onTick={fn}>{
value => <div>{`tick: ${value}`}</div>
}</Metronome>
the api I really want:
<Metronome bpm={120} reduce={(state, tick) => Math.sin(tick)}>{
value => <div>{`tick: ${value}`}</div>
}</Metronome>