Answers for "react pass parameters to other page"

0

react pass parameters to other page

<Link
  to={{
    pathname: "/page",
    data: data // your data array of objects
  }}
>
  
//in /page
  render() {
  const { data } = this.props.location
  return (
    // render logic here
  )
}
Posted by: Guest on May-01-2020

Code answers related to "react pass parameters to other page"

Code answers related to "Javascript"

Browse Popular Code Answers by Language