Skip to content

Commit 8793a34

Browse files
committed
Reformatting into the getting-started flow instead of quickstart flow.
1 parent 253d447 commit 8793a34

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

docs/platforms/javascript/guides/react/getting-started.mdx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This guide covers the full getting started pocess for the React SDK and assumes
1010

1111
<PlatformContent includePath="getting-started-prerequisites" />
1212

13-
<StepConnector checkable>
13+
<StepConnector>
1414

1515
## Install
1616

@@ -28,7 +28,7 @@ npm install @sentry/react --save
2828

2929
### Initialize the Sentry SDK
3030

31-
Add the following to your application's entry point (typically `index.js`, `main.js`, or `App.js`) or to the file before you use any other Sentry method:
31+
To import and initialize Sentry, create a file in your project's root directory, for example, `instrument.js`, and add the following code:
3232

3333
```javascript {filename:instrument.js}
3434
import * as Sentry from "@sentry/react";
@@ -175,9 +175,7 @@ logger.error("Payment processing failed", {
175175
logger.warn(logger.fmt`Rate limit exceeded for user: ${userId}`);
176176
```
177177

178-
<Break />
179-
180-
## (Optional) Customizing Replays
178+
## Customizing Replays (Optional)
181179

182180
[Replays](/product/explore/session-replay/web/getting-started/) allow you to see video-like reproductions of user sessions.
183181

@@ -209,9 +207,7 @@ Sentry.init({
209207
<span data-safe-to-show>Safe user data: {username}</span>
210208
```
211209

212-
213-
214-
## (Optional) Custom Traces with Attributes
210+
## Custom Traces with Attributes (Optional)
215211

216212
[Tracing](/platforms/javascript/guides/react/tracing/) allows you to monitor interactions between multiple services or applications. Create custom spans to measure specific operations and add meaningful attributes. This helps you understand performance bottlenecks and debug issues with detailed context.
217213

@@ -263,9 +259,7 @@ if (span) {
263259
}
264260
```
265261

266-
267-
268-
## Step 7: Avoid Ad Blockers With Tunneling (Optional)
262+
## Avoid Ad Blockers With Tunneling (Optional)
269263

270264
<PlatformContent includePath="getting-started-tunneling" />
271265

0 commit comments

Comments
 (0)