score:4

  1. react router currently uses absolute paths, but they are working on relative routes

  2. if you want relative routes, it looks like people are getting the current route from the match param, and then appending a route to it. e.g., <route path={match.path + '/more/stuff'}/>

in the example that you gave, the point is that whenever the current path contains /repos there will be some content (the list of links to repos generated by component={repos}) that will be visible. when the path is /repos/:username/:reponame it will continue to show that content because the path still matches /repos, but it will also show a particular repo's content (component={repo}).


Related Query

More Query from same tag