From 6dd5cc59591d1e1a706ece208995d82ab7804dce Mon Sep 17 00:00:00 2001 From: Onur Temizkan Date: Mon, 17 Jul 2023 20:26:06 +0100 Subject: [PATCH] Mention react-router instrumentation's `HashRouter` and `MemoryRouter` support. (#7426) Co-authored-by: Abhijeet Prasad Co-authored-by: Liza Mock --- .../guides/react/configuration/integrations/react-router.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/javascript/guides/react/configuration/integrations/react-router.mdx b/src/platforms/javascript/guides/react/configuration/integrations/react-router.mdx index 66283d0be5db1..b52a554eea39c 100644 --- a/src/platforms/javascript/guides/react/configuration/integrations/react-router.mdx +++ b/src/platforms/javascript/guides/react/configuration/integrations/react-router.mdx @@ -79,7 +79,7 @@ You can instrument [`createMemoryRouter`](https://reactrouter.com/en/main/router ### Usage With `` Component -If you use the `` component from `react-router-dom` to define your routes, wrap [`Routes`](https://reactrouter.com/docs/en/v6/api#routes-and-route) using `Sentry.withSentryReactRouterV6Routing`. This creates a higher order component, which will enable Sentry to reach your router context, as in the example below: +If you're using the `` component from `react-router-dom` to define your routes, wrap [`Routes`](https://reactrouter.com/docs/en/v6/api#routes-and-route) using `Sentry.withSentryReactRouterV6Routing`. This creates a higher order component, which will enable Sentry to reach your router context. You can also use `Sentry.withSentryReactRouterV6Routing` for `Routes` inside `BrowserRouter`. `MemoryRouter`, and `HashRouter` components: ```javascript import React from "react";