Kikobeats / react-clap-button

A Medium like clap button
https://react-clap-button.netlify.com
120 stars 17 forks source link

callback for count change #42

Closed santosh898 closed 5 years ago

santosh898 commented 5 years ago

As stated in #12 a callback is required for this component be usable. Added new onCountChange prop. Can be used like this.

const onCountChange = ({ count, countTotal }) => { }
Kikobeats commented 5 years ago

this is soo good, thanks for that 🙂