Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

passing data in react router history,push

<Link to={{
      pathname: '/template',
      search: '?query=abc',
      state: { detail: response.data }
    }}> My Link </Link>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #passing #data #react #router
ADD COMMENT
Topic
Name
7+6 =