Answers for "how to send data by the url react router"

0

how to send data between components in react using link

<Link
  to={{
    pathname: "/page",
    state: data // your data array of objects
  }}
>
Posted by: Guest on September-07-2021
0

react router how to send data

props.history.push('/other-page', { id: 7, color: 'green' }))

Then, you can access the state data in '/other-page' via:

props.location.state
Posted by: Guest on September-01-2020

Code answers related to "how to send data by the url react router"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language