Migration guide feedback #8814
Unanswered
wojtekmaj
asked this question in
v5 to v6 Migration
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
react-router
and/orreact-router-dom
when installingreact-router-dom-v5-compat
. It only got clear when I read through the entire document.useLocation
fromreact-router-dom-v5-compat
? Should I "upgrade" pre-existinguseLocation
uses from RRv5 to be imported fromreact-router-dom-v5-compat
instead?history.push({ pathname: '/foo', state: { some: 'state' })
.<Switch>
was used in a nested component, using CompatRoute may not be enough for some paths to be rendered fully on the screen. It may only be fixed in Step 7!Redirect
at all!git grep -lz src | xargs -0 sed -i '' -e 's/react-router-dom-v5-compat/react-router-dom/g'
resulted in "sed: RE error: illegal byte sequence" error for meBeta Was this translation helpful? Give feedback.
All reactions