RouterProviderProps
Props for the framework provider.
Compatibility
ReactAvailable in this renderer's browser integration.
React SSRAvailable to this renderer's SSR integration; browser event handlers run after hydration.
PreactAvailable in this renderer's browser integration.
Preact SSRAvailable to this renderer's SSR integration; browser event handlers run after hydration.
Import from @kasperrt/smolter/react @kasperrt/smolter/preact
Signature
interface RouterProviderProps {
router: NavigationRouter;
children?: ReactNode;
}Usage
Props for the framework provider. router should remain stable across renders. children can contain navigation, Routes, and components reading data hooks.
<RouterProvider router={router}><Routes /></RouterProvider>Fields
router
router: NavigationRouter;children
children?: ReactNode;