Kikobeats / react-clap-button

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

react-clap-buttton is not properly namespaced #33

Closed nfedyashev closed 4 years ago

nfedyashev commented 5 years ago

Hi @Kikobeats

first of all thanks for the react-clap-button! I've experienced an issue when one need to display several react-clap-buttons on one page. In this case it becomes unfunctional - animation, counters, styling.

Unfortunately I'm in hurry right now. If anyone has some time to fix it properly here's some context info:

mojs configuration has static(non namespaced) settings(el: and "parent:") Same with ClapButton's, ClapIcon's, ClapCount's and ClapCountTotal's ids. It's all localised in one file - src/index.js

Kikobeats commented 5 years ago

Can you make your error reproducible using codesandbox?