React SDK
Navigation
Frigade supports the ability to route users to different pages in your application through the primaryButtonUri
and secondaryButtonUri
props defined in the Flow configuration.
By default, Frigade will use the window.location
object to navigate to the specified URI. This works well for some use cases, but it causes a full page refresh which can be disruptive.
For optimal performance, we recommend overriding this behavior by providing a custom navigate
function to the Frigade.Provider
component where you can use your own router for a smoother experience.
Examples
Overriding the default navigation handler is different depending on your React framework of choice. Below are examples for the most popular Routers: