How can we pass parameter with this.props.history.push(\'/page\') in React-Router v4?
this.props.history.push(\'/page\')
.then(response => { var r = this; if (re
It is not necessary to use withRouter. This works for me:
In your parent page,
( )} /> ( )} />
Then in ComponentA or ComponentB you can access
this.props.history
object, including the this.props.history.push method.