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 });
}
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 });
}