rowyio / feedbackfin

Open-source widget to collect feedback anywhere on your website. Lightweight and tiny. That’s it.
https://feedbackfin.com
Other
295 stars 28 forks source link

Feedbackfin in React App #4

Closed julienvanbeveren closed 2 years ago

julienvanbeveren commented 2 years ago

I want to add this to my react application and when I add it to the index.html everything works but I only want this to be visible on some pages so I created a component including the scripts and button but using this method, nothing happens when I click on the "feedback" button.

Is there a way to fix this?

julienvanbeveren commented 2 years ago

Never mind, I found it. For anyone wondering: Include the script in the header of your HTML file, add the config scripts in a useEffect on the feedback component and add the onClick handler provided in the docs on the button (in the react component). That makes it work.