Como obter o valor do estado da história reagir
history.push({
pathname: '/path',
customNameData: yourData,
});
Obnoxious Opossum
history.push({
pathname: '/path',
customNameData: yourData,
});
this.props.location.customNameData // it is equal to yourData
history.push('/path', yourData);