Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
  )
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #pass #parameters #page
ADD COMMENT
Topic
Name
8+9 =