Skip to content

Commit 6dd5cc5

Browse files
onurtemizkanAbhiPrasadlizokm
authored
Mention react-router instrumentation's HashRouter and MemoryRouter support. (#7426)
Co-authored-by: Abhijeet Prasad <devabhiprasad@gmail.com> Co-authored-by: Liza Mock <lizka920@gmail.com>
1 parent 1ad32d4 commit 6dd5cc5

File tree

1 file changed

+1
-1
lines changed
  • src/platforms/javascript/guides/react/configuration/integrations

1 file changed

+1
-1
lines changed

src/platforms/javascript/guides/react/configuration/integrations/react-router.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ You can instrument [`createMemoryRouter`](https://reactrouter.com/en/main/router
7979

8080
### Usage With `<Routes />` Component
8181

82-
If you use the `<Routes />` 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:
82+
If you're using the `<Routes />` 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:
8383

8484
```javascript
8585
import React from "react";

0 commit comments

Comments
 (0)