| print.reactRouter | R Documentation |
When called interactively, renders the component in the IDE viewer panel. Otherwise, falls back to standard shiny.tag printing (raw HTML text).
## S3 method for class 'reactRouter'
print(x, browse = interactive(), ...)
x |
A reactRouter object (also inherits shiny.tag). |
browse |
Whether to render in viewer. Defaults to TRUE in interactive sessions. |
... |
Additional arguments passed to print. |
Only the router-root constructors carry the "reactRouter" S3 class
and therefore dispatch to this method:
RouterProvider, createHashRouter,
createBrowserRouter, createMemoryRouter,
HashRouter, BrowserRouter, and
MemoryRouter. Inner pieces (Route,
Link, Outlet, hooks, ...) are plain
shiny.tag elements – printing one of those on its own is rarely
useful (it has no router context to render against), so they intentionally
fall through to the default shiny.tag print method.
Invisibly returns x.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.