Answers for "send data with history.push"

4

react router history push parameter

this.props.history.push({
  pathname: '/template',
  search: '?query=abc',
  state: { detail: response.data }
})
Posted by: Guest on March-17-2020
1

this.props.history.location.push

<Link to={{  pathname: "/register",  state: data_you_need_to_pass }}> Register</Link>
Posted by: Guest on November-18-2020

Code answers related to "send data with history.push"

Code answers related to "Javascript"

Browse Popular Code Answers by Language