Switch
not exported from react-router-dom
or compat package
#8754
-
The migration guide shows that we should be able to keep our existing |
Beta Was this translation helpful? Give feedback.
Answered by
diondiondion
Apr 1, 2022
Replies: 1 comment 3 replies
-
Keep importing it from react-router-dom v5. You shouldn't have changed the react-router-dom dependency to 6.3.0 before you've migrated all |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ryanflorence
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Keep importing it from react-router-dom v5. You shouldn't have changed the react-router-dom dependency to 6.3.0 before you've migrated all
Switch
components toRoutes
.