Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

passing data in react router history,push

this.props.history.push({
  pathname: '/template',
  search: '?query=abc',
  state: { detail: response.data }
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #passing #data #react #router
ADD COMMENT
Topic
Name
9+2 =