how to get state value from history react

Solutions on MaxInterview for how to get state value from history react by the best coders in the world

showing results for - "how to get state value from history react"
Noemi
12 Apr 2017
1this.props.location.customNameData // it is equal to yourData
Lev
27 Mar 2017
1history.push({
2  pathname: '/path',
3  customNameData: yourData,
4});
Laura
22 Jun 2019
1history.push('/path', yourData);