samples-js-react icon indicating copy to clipboard operation
samples-js-react copied to clipboard

Migrate to react-router v6

Open denysoblohin-okta opened this issue 5 years ago • 1 comments

react-router v6 introduces breaking changes

  • <Route>s should be inside <Routes>
  • <Route exact> removed, so need to use * in path if it's not exact
  • <Route component> replaced to <Route element>

Issue: https://github.com/okta/okta-oidc-js/issues/853 Internal ref: https://oktainc.atlassian.net/browse/OKTA-318565

PR for okta-react: https://github.com/okta/okta-react/pull/26

Warning! This PR uses react-router 6.0.0-beta.0 and should be revised after stable RR release. Do not merge.

denysoblohin-okta avatar Nov 02 '20 12:11 denysoblohin-okta

Let's wait on the official react-router-dom v6 release to merge this PR.

shuowu avatar Nov 02 '20 14:11 shuowu