score:3

Accepted answer
const RouteWithSubRoutes = ({ path, routes, component: Component }) => (
  <Route
    path={path}
    render={props => (
      <Component {...props} routes={routes} />
    )}
  />
);

score:2

{
    ...
    route: {
        ...
    }
    ...
}

Related Query

More Query from same tag