Skip to content

Commit

Permalink
docs(js/react-router): Add setup guide for react router (framework) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome authored Dec 17, 2024
1 parent 06a67c1 commit 296b1be
Show file tree
Hide file tree
Showing 50 changed files with 274 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
keywords:
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ supported:
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
- javascript.deno
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ supported:
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ supported:
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ supported:
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ supported:
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ supported:
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
- javascript.cloudflare
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
- javascript.deno
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ supported:
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
- javascript.deno
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ supported:
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.cloudflare
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.deno
- javascript.bun
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.solidstart
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
- javascript.deno
Expand Down
1 change: 1 addition & 0 deletions docs/platforms/javascript/common/crons/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ supported:
- javascript.nextjs
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
- javascript.deno
Expand Down
1 change: 1 addition & 0 deletions docs/platforms/javascript/common/crons/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ supported:
- javascript.nextjs
- javascript.sveltekit
- javascript.remix
- javascript.react-router
- javascript.astro
- javascript.bun
- javascript.deno
Expand Down
6 changes: 3 additions & 3 deletions docs/platforms/javascript/common/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Check out the other SDKs we support in the left-hand dropdown.

<PlatformSection notSupported={["javascript.deno"]}>

<PlatformSection notSupported={["javascript", "javascript.astro", "javascript.cordova", "javascript.nextjs", "javascript.nuxt", "javascript.remix", "javascript.solidstart", "javascript.sveltekit", "javascript.bun", "javascript.cloudflare"]}>
<PlatformSection notSupported={["javascript", "javascript.astro", "javascript.cordova", "javascript.nextjs", "javascript.nuxt", "javascript.remix", "javascript.solidstart", "javascript.sveltekit", "javascript.bun", "javascript.cloudflare", "javascript.react-router"]}>

## Features

Expand All @@ -40,7 +40,7 @@ Select which Sentry features you'd like to install in addition to Error Monitori
</PlatformSection>
</PlatformCategorySection>

<PlatformSection notSupported={["javascript", "javascript.astro", "javascript.cordova", "javascript.nextjs", "javascript.nuxt", "javascript.remix", "javascript.sveltekit", "javascript.bun", "javascript.capacitor", "javascript.ember", "javascript.angular", "javascript.react", "javascript.solid", "javascript.solidstart", "javascript.svelte", "javascript.vue", "javascript.cloudflare"]}>
<PlatformSection notSupported={["javascript", "javascript.astro", "javascript.cordova", "javascript.nextjs", "javascript.nuxt", "javascript.remix", "javascript.sveltekit", "javascript.bun", "javascript.capacitor", "javascript.ember", "javascript.angular", "javascript.react", "javascript.solid", "javascript.solidstart", "javascript.svelte", "javascript.vue", "javascript.cloudflare", "javascript.react-router"]}>

In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/).

Expand Down Expand Up @@ -72,7 +72,7 @@ Sentry captures data by using an SDK within your application’s runtime.

## Configure

<PlatformSection notSupported={["javascript.nextjs", "javascript.astro", "javascript.react"]}>
<PlatformSection notSupported={["javascript.nextjs", "javascript.astro", "javascript.react", "javascript.react-router"]}>

Configuration should happen as early as possible in your application's lifecycle.

Expand Down
1 change: 1 addition & 0 deletions docs/platforms/javascript/common/install/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ notSupported:
- javascript.azure-functions
- javascript.gcp-functions
- javascript.cloudflare
- javascript.react-router
---

<PageGrid />
Expand Down
1 change: 1 addition & 0 deletions docs/platforms/javascript/common/install/loader.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ notSupported:
- javascript.vue
- javascript.wasm
- javascript.remix
- javascript.react-router
- javascript.svelte
- javascript.sveltekit
- javascript.node
Expand Down
1 change: 1 addition & 0 deletions docs/platforms/javascript/common/install/npm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ notSupported:
- javascript.vue
- javascript.wasm
- javascript.remix
- javascript.react-router
- javascript.solid
- javascript.solidstart
- javascript.svelte
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.sveltekit
- javascript.astro
- javascript.remix
- javascript.react-router
notSupported:
- javascript
sidebar_order: 0
Expand Down
1 change: 1 addition & 0 deletions docs/platforms/javascript/common/opentelemetry/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ supported:
- javascript.sveltekit
- javascript.astro
- javascript.remix
- javascript.react-router
notSupported:
- javascript
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- javascript.sveltekit
- javascript.astro
- javascript.remix
- javascript.react-router
notSupported:
- javascript
sidebar_order: 1
Expand Down
8 changes: 8 additions & 0 deletions docs/platforms/javascript/guides/react-router/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: React Router
description: React Router (v7) is a framework for building full-stack web apps and websites. Learn how to set it up with Sentry.
sdk: sentry.javascript.react-router
categories:
- javascript
- browser
- server
- server-node
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"next-themes": "^0.3.0",
"nextjs-toploader": "^1.6.6",
"parse-numeric-range": "^1.3.0",
"platformicons": "^6.0.3",
"platformicons": "^7.0.3",
"prism-sentry": "^1.0.2",
"query-string": "^6.13.1",
"react": "rc",
Expand Down Expand Up @@ -137,4 +137,4 @@
"node": "20.11.0",
"yarn": "1.22.22"
}
}
}
Loading

0 comments on commit 296b1be

Please sign in to comment.