score:1

<Route 
  path="/" 
  render={({location}) => {
      const template = checkYourRoute(location) ? Overview : Repo;
      return <Profile template={template} />
    }
  }
>

Related Query

More Query from same tag