View source: R/RouterProvider.R
| RouterProvider | R Documentation |
https://api.reactrouter.com/v7/functions/react-router.RouterProvider.html
RouterProvider(router, fallbackElement = NULL)
router |
A router element produced by |
fallbackElement |
Element shown while the initial route's loader is resolving. |
Renders a data router. Mirrors the React Router v7 composition pattern:
pass a router built with createHashRouter,
createBrowserRouter, or createMemoryRouter to
the router argument.
The underlying router is created once on mount and is not rebuilt when
Route() children change at runtime — React Router data routers own
their own navigation state and must be stable. To swap the route tree
dynamically (e.g. based on Shiny inputs), remount RouterProvider
itself, for instance by toggling its parent via shiny::renderUI.
A RouterProvider component.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.