Install
Basic setup
Initialize the widget once at your app’s entry point. Use auseEffect 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:TypeScript
Declare thewindow.feedbackfun global to get type checking: