Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/platforms/javascript/guides/react/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ import * as Sentry from "@sentry/react";

Sentry.init({
dsn: "___PUBLIC_DSN___",

// Adds request headers and IP for users, for more info visit:
// https://docs.sentry.io/platforms/javascript/guides/react/configuration/options/#sendDefaultPii
sendDefaultPii: true,

integrations: [
// ___PRODUCT_OPTION_START___ performance
// If you're using react router, use the integration for your react router version instead.
Expand Down Expand Up @@ -113,6 +113,7 @@ Integrate Sentry with these hooks and customize error handling:

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

const container = document.getElementById(“app”);
const root = createRoot(container, {
Expand Down
1 change: 1 addition & 0 deletions platform-includes/capture-error/javascript.react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Starting with React 19, the `createRoot` and `hydrateRoot` methods from `react-d

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

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