Skip to contents

When called interactively, renders the component in the IDE viewer panel. Otherwise, falls back to standard shiny.tag printing (raw HTML text).

Usage

# S3 method for class 'reactRouter'
print(x, browse = interactive(), ...)

Arguments

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.

Value

Invisibly returns x.

Details

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.