score:1

Accepted answer
  <Switch>
    <Route
       path="/projects/:slug"
       render={(props) => <Project {...props} ref={projectRef} />}
    />
  </Switch>

Related Query

More Query from same tag