View source: R/RouterProvider.R
| createRoutesFromElements | R Documentation |
https://api.reactrouter.com/v7/variables/react-router.createRoutesFromElements.html
createRoutesFromElements(...)
... |
|
Optional compatibility alias. In R, createHashRouter,
createBrowserRouter, and createMemoryRouter
accept Route elements directly, so wrapping them in
createRoutesFromElements() is not required. The function is kept
so that examples copied verbatim from the React Router v7 documentation
(createHashRouter(createRoutesFromElements(...))) keep working.
The actual JSX-to-route-object conversion always happens on the JavaScript side; this R function simply bundles its arguments into a tag list.
A tag list of Route elements.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.