We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8f7778 commit ce638fbCopy full SHA for ce638fb
1 file changed
src/main.tsx
@@ -1,14 +1,14 @@
1
+import "./sentry"; // ⚠️ must be first
2
import React from "react";
3
import { createRoot } from "react-dom/client";
4
import App from "./App";
-import * as Sentry from "@sentry/react";
5
-import "./sentry";
+import { ErrorBoundary } from "@sentry/react";
6
7
const container = document.getElementById("app")!;
8
const root = createRoot(container);
9
-
+root.render(<App />);
10
root.render(
11
- <Sentry.ErrorBoundary fallback={<h2>Something went wrong.</h2>}>
+ <ErrorBoundary fallback={<h2>Something went wrong.</h2>}>
12
<App />
13
- </Sentry.ErrorBoundary>
14
-);
+ </ErrorBoundary>
+);
0 commit comments