Use nested routes from react router v6
Closes #506 (closed)
Simplifies the Route structure by using nested routes.
The render method has been replaced by element
which doesn't allow to access the match
or history
. For this reason, we have to wrap the components with the withRouter
(which was also removed). This is because react-router
enforces the use of functions over component
classes and bases this new version in react hooks, only accessible in functions.
Edited by Adrià Labay