> there's no relative routes https://github.com/ReactTraining/react-router/issues/2172
I've been managing "relative" routes by just using `match.path` and `match.url` from the previous route. Works fine.
function Parent(props) {
return (
<>
<Link to='/child'>Child</Link>
<Route path='/child' component={Child}/>
</>
);
}
function Child({match}) {
return (
<>
<Link to={`${match.url}/grandchild`}>Grandchild</Link>
<Route path={`${match.path}/grandchild`} component={Grandchild} />
</>
)
}