Answers for "how to pass data in router link react-typescript"

0

how to pass data in router link react-typescript

<Route
  path='/project/:id'
  render={({ location }) => {
    const { state } = location;
    return <ProjectDetails project={state.project} /> 
  }}
/>
Posted by: Guest on June-11-2021
0

how to pass data in router link react-typescript

<Link
  to={{
    pathname: path,
    state: {
      project,
    },
  }}
  key={project.id}
>
  <ProjectSummary project={project} deleteCallback={projectDelete}/>
</Link>
Posted by: Guest on June-11-2021

Code answers related to "how to pass data in router link react-typescript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language