Use nested routes from react router v6
The following discussion from !297 (merged) should be addressed:
discussion: (+9 comments)
Nice! I think you always have to specify the full URL, but you can use
match.url
from the parent component. Then a URL becomes${match.url}/students
, which will beexam/id/students
.
In react router v6, the
Routes
component fixes this: https://reacttraining.com/blog/react-router-v6-pre/#introducing-routes>