Jak uzyskać wartość stanu z historii React
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);