I am making a login page with the help of react that redirects to another page when the login is successful. Let me call the component that gets rendered when the login is succe
You can use the location prop to access the state you have passed. Visit React-Router for reference. When you want to access that state, you can do it by this.props.location.state.