The SDK supports page routing in Next.js applications without any extra configuration. If you’re using next.js, skip to the next step.
navigateFunction
property on the DepictProvider
wrapper to handle routing to search result pages as shown:
When using React Router
📘 If using another routing library, you can define your navigation function compatible with React Router’s NavigateFunction type. (Note: you have to support the
replace
option)