Skip to content

Commit b0e27ef

Browse files
andreiborzaantonpirker
authored andcommitted
fix(react): Add missing Sentry import to react guide (#13842)
Resolves: #13838
1 parent 0c7b24a commit b0e27ef

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/platforms/javascript/guides/react/index.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ import * as Sentry from "@sentry/react";
4848

4949
Sentry.init({
5050
dsn: "___PUBLIC_DSN___",
51-
51+
5252
// Adds request headers and IP for users, for more info visit:
5353
// https://docs.sentry.io/platforms/javascript/guides/react/configuration/options/#sendDefaultPii
5454
sendDefaultPii: true,
55-
55+
5656
integrations: [
5757
// ___PRODUCT_OPTION_START___ performance
5858
// If you're using react router, use the integration for your react router version instead.
@@ -113,6 +113,7 @@ Integrate Sentry with these hooks and customize error handling:
113113

114114
```javascript
115115
import { createRoot } from "react-dom/client";
116+
import * as Sentry from '@sentry/react';
116117

117118
const container = document.getElementById(“app”);
118119
const root = createRoot(container, {

platform-includes/capture-error/javascript.react.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Starting with React 19, the `createRoot` and `hydrateRoot` methods from `react-d
5252

5353
```javascript
5454
import { createRoot } from "react-dom/client";
55+
import * as Sentry from '@sentry/react';
5556

5657
const container = document.getElementById(“app”);
5758
const root = createRoot(container, {

0 commit comments

Comments
 (0)