Kikobeats / react-clap-button

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

Add option for "max clicks" #5

Closed breadadams closed 6 years ago

breadadams commented 6 years ago

Not sure if included/planned already, but would be neat to add a way to lock the max clicks each user can make.

Kikobeats commented 6 years ago

Yes, it's 50, but need to move the value as defaultProp:

https://github.com/Kikobeats/react-clap-button/blob/master/src/index.js#L168

breadadams commented 6 years ago

Aha, good point. Although it's not totally blocking clicks, as countTotal still increments.

eg. react-clap-over-50