Upgrade react-router-dom from 5 to 6. Refactor for breaking changes.
Ref https://reactrouter.com/en/main/upgrading/v5#upgrade-to-react-router-v6
Background
This allows us to improve testing of routing and components, and allows us to get rid of the v5 router mock in all of our component tests