@@ -11,7 +11,11 @@ categories:
1111
1212<PlatformContent includePath = " getting-started-prerequisites" />
1313
14- ## Step 1: Install
14+ <OnboardingSteps >
15+
16+ <OnboardingOption isStep >
17+
18+ ## Install
1519
1620Choose the features you want to configure, and this guide will show you how:
1721
@@ -37,7 +41,11 @@ yarn add @sentry/react
3741pnpm add @sentry/react
3842```
3943
40- ## Step 2: Configure
44+ </OnboardingOption >
45+
46+ <OnboardingOption isStep >
47+
48+ ## Configure
4149
4250### Initialize the Sentry SDK
4351
@@ -112,8 +120,9 @@ const container = document.getElementById(“app”);
112120const root = createRoot (container);
113121root .render (< App / > );
114122```
115-
116- ## Step 3: Capture React Errors
123+ </OnboardingOption >
124+ <OnboardingOption isStep >
125+ ## Capture React Errors
117126
118127To make sure Sentry captures all your app's errors, configure error handling based on your React version.
119128
@@ -159,8 +168,10 @@ import * as Sentry from "@sentry/react";
159168 [ here] ( features/error-boundary/#manually-capturing-errors ) .
160169</Alert >
161170
162- <OnboardingOption optionId = " performance" >
163- ## Step 4: Set Up React Router
171+ </OnboardingOption >
172+
173+ <OnboardingOption optionId = " performance" isStep >
174+ ## Set Up React Router
164175If you're using ` react-router ` in your application, you need to set up the Sentry integration for your specific React Router version to trace ` navigation ` events.\
165176Select your React Router version to start instrumenting your routing:
166177
@@ -169,43 +180,34 @@ Select your React Router version to start instrumenting your routing:
169180- [ Older React Router versions] ( features/react-router )
170181- [ TanStack Router] ( features/tanstack-router )
171182
172- ## Step 5: Capture Redux State Data (Optional)
173-
174183</OnboardingOption >
175184
176- <OnboardingOption optionId = " performance" hideForThisOption >
177- ## Step 4: Capture Redux State Data (Optional)
178- </OnboardingOption >
185+ <OnboardingOption isStep >
186+ ## Capture Redux State Data (Optional)
179187
180188To capture Redux state data, use ` Sentry.createReduxEnhancer ` when initializing your Redux store.
181189
182190<PlatformContent includePath = " configuration/redux-init" />
183191
184- <OnboardingOption optionId = " performance" >
185- ## Step 6: Add Readable Stack Traces With Source Maps (Optional)
186- </OnboardingOption >
187- <OnboardingOption optionId = " performance" hideForThisOption >
188- ## Step 5: Add Readable Stack Traces With Source Maps (Optional)
189192</OnboardingOption >
190193
194+ <OnboardingOption isStep >
195+ ## Add Readable Stack Traces With Source Maps (Optional)
196+
191197<PlatformContent includePath = " getting-started-sourcemaps-short-version" />
192198
193- <OnboardingOption optionId = " performance" >
194- ## Step 7: Avoid Ad Blockers With Tunneling (Optional)
195- </OnboardingOption >
196- <OnboardingOption optionId = " performance" hideForThisOption >
197- ## Step 6: Avoid Ad Blockers With Tunneling (Optional)
198199</OnboardingOption >
199200
201+ <OnboardingOption isStep >
202+ ## Avoid Ad Blockers With Tunneling (Optional)
203+
200204<PlatformContent includePath = " getting-started-tunneling" />
201205
202- <OnboardingOption optionId = " performance" >
203- ## Step 8: Verify Your Setup
204- </OnboardingOption >
205- <OnboardingOption optionId = " performance" hideForThisOption >
206- ## Step 7: Verify Your Setup
207206</OnboardingOption >
208207
208+ <OnboardingOption isStep >
209+ ## Verify Your Setup
210+
209211Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project.
210212
211213### Issues
@@ -230,6 +232,8 @@ To verify that Sentry captures errors and creates issues in your Sentry project,
230232
231233<PlatformContent includePath = " getting-started-browser-sandbox-warning" />
232234
235+ </OnboardingOption >
236+
233237<OnboardingOption optionId = " performance" >
234238### Tracing
235239
@@ -254,6 +258,8 @@ Open the page in a browser (for most React applications, this will be at localho
254258
255259</OnboardingOption >
256260
261+ <OnboardingOption >
262+
257263### View Captured Data in Sentry
258264
259265Now, head over to your project on [ Sentry.io] ( https://sentry.io/ ) to view the collected data (it takes a couple of moments for the data to appear).
@@ -277,3 +283,7 @@ Now's a good time to customize your setup and look into more advanced topics. Ou
277283- [ Get support] ( https://sentry.zendesk.com/hc/en-us/ )
278284
279285</Expandable >
286+
287+ </OnboardingOption >
288+
289+ </OnboardingSteps >
0 commit comments