Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [Sentry.feedbackIntegration({
// Disable the injection of the default widget
autoInject: false,
})],
});
// Get the instance returned by `feedbackIntegration()`
const feedback = Sentry.getFeedback();
// Create and render the button
const widget = feedback?.createWidget();
// Later, when it's time to clean up:
widget.removeFromDom();