Navigate With State Via @reach/router
Last updated
Was this helpful?
Last updated
Was this helpful?
With , you can programmatically change your route using the function. This utilizes the Context API, so its available anywhere nested under your router. To provide some data to the destination location, include a state
option in the navigate
call.
The component that renders in response to this navigation will have access to this state.