samples-js-react
samples-js-react copied to clipboard
Migrate to react-router v6
react-router v6 introduces breaking changes
-
<Route>s should be inside<Routes> -
<Route exact>removed, so need to use*inpathif 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.
Let's wait on the official react-router-dom v6 release to merge this PR.