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
Add on info to get query parameters.
const queryParams = new URLSearchParams(this.props.location.search); console.log('assuming query param is id', queryParams.get('id');
For more info about URLSearchParams check this link URLSearchParams