<Route path='/project/:id' render={({ location }) => { const { state } = location; return <ProjectDetails project={state.project} /> }} />