1<Route
2 path='/project/:id'
3 render={({ location }) => {
4 const { state } = location;
5 return <ProjectDetails project={state.project} />
6 }}
7/>
8
1<Link
2 to={{
3 pathname: path,
4 state: {
5 project,
6 },
7 }}
8 key={project.id}
9>
10 <ProjectSummary project={project} deleteCallback={projectDelete}/>
11</Link>
12