You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Note:** If you also have `history` as a dependency in your `package.json`, you will also need to upgrade it to v5:
151
+
>
152
+
> ```bash
153
+
> $ npm install history@5
154
+
>```
155
+
>
156
+
> However, we recommend you remove it as a direct dependency, as we now wrap most of its APIs with hooks for better support of React Suspense.
157
+
150
158
### Upgrade all `<Switch>` elements to `<Routes>`
151
159
152
160
React Router v6 introduces a `Routes` component that is kind of like `Switch`, but a lot more powerful. The main advantages of `Routes` over `Switch` are:
0 commit comments