Answers for "how to get state value from history react"

0

how to get state value from history react

this.props.location.customNameData // it is equal to yourData
Posted by: Guest on July-28-2020
0

how to get state value from history react

history.push({
  pathname: '/path',
  customNameData: yourData,
});
Posted by: Guest on July-28-2020
0

how to get state value from history react

history.push('/path', yourData);
Posted by: Guest on July-28-2020

Code answers related to "how to get state value from history react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language