Skip to content

Commit

Permalink
Mention react-router instrumentation's HashRouter and `MemoryRouter…
Browse files Browse the repository at this point in the history
…` support.
  • Loading branch information
onurtemizkan committed Jul 13, 2023
1 parent 6e97e6e commit 590c023
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ You can instrument [`createMemoryRouter`](https://reactrouter.com/en/main/router

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

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:
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. You can use `Sentry.withSentryReactRouterV6Routing` for `Routes` inside `BrowserRouter`. `MemoryRouter`, and `HashRouter` components:

```javascript
import React from "react";
Expand Down

0 comments on commit 590c023

Please sign in to comment.