Answers for "history prop second paramater state"

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 "history prop second paramater state"

Code answers related to "Javascript"

Browse Popular Code Answers by Language