react-metronome

1.0.5 • Public • Published

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>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.5
    1
  • 1.0.4
    1

Package Sidebar

Install

npm i react-metronome

Weekly Downloads

2

Version

1.0.5

License

ISC

Last publish

Collaborators

  • threepointone