Skip to main content

Install

Basic setup

Initialize the widget once at your app’s entry point. Use a useEffect with an empty dependency array so it only runs once:

With user identification

If your app has authentication, pass the current user so feedback is linked to their account:

Reusable component

Extract the widget initialization into a dedicated component:
Then use it at the root of your app:

TypeScript

Declare the window.feedbackfun global to get type checking: