0
How to pass props through the
<Link to=''>
I need to get the information from another component
0
How to pass props through the
<Link to=''>
I need to get the information from another component
0
You can use an object instead of a string in the 'to' and so you can send props via the state property
<Link to={{
path: '/login'
state: { someData: [] }
}} />
Browser other questions tagged react
You are not signed in. Login or sign up in order to post.
Have you read about Withrouter? https://reacttraining.com/react-router/web/api/withRouter
– Victor Alessander