Kikobeats / react-clap-button

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

Using Ref based element selection instead of ids #44

Closed santosh898 closed 5 years ago

santosh898 commented 5 years ago

Previously using id based element selection for mo.js. This leads to unexpected behaviour when using multiple instances in a single document. Now using React Refs, each instance is isolated.

Kikobeats commented 5 years ago

That's super nice @santosh898!

I would like rewrite it into hooks, the code will look easy to undertand 🙂

Kikobeats commented 5 years ago

@santosh898

I added automate-release over this repository, so any PR merged will be automatically released as a new version 🙂