how to send values ffrom history .push in react js code example
Example 1: how to get state value from history react
history.push({
pathname: '/path',
customNameData: yourData,
});
Example 2: how to get state value from history react
this.props.location.customNameData // it is equal to yourData