0

I see the "this.props.router.push" function in React Router v2. How can I use this function in React Router V4?

For example:

setFilter(query) {
  this.props.router.push({ pathname: this.props.location.pathname, query });
}
sirisakc
  • 683
  • 2
  • 11
  • 27

0 Answers0