Skip to content

Switch not exported from react-router-dom or compat package #8754

Discussion options

You must be logged in to vote

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 to Routes.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@scrozier
Comment options

@ryanhiebert
Comment options

@ryanhiebert
Comment options

Answer selected by ryanflorence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants