% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/browser.R
\name{print.reactRouter}
\alias{print.reactRouter}
\title{Print reactRouter components}
\usage{
\method{print}{reactRouter}(x, browse = interactive(), ...)
}
\arguments{
\item{x}{A reactRouter object (also inherits shiny.tag).}

\item{browse}{Whether to render in viewer. Defaults to TRUE in interactive sessions.}

\item{...}{Additional arguments passed to print.}
}
\value{
Invisibly returns x.
}
\description{
When called interactively, renders the component in the IDE viewer panel.
Otherwise, falls back to standard shiny.tag printing (raw HTML text).
}
\details{
Only the router-root constructors carry the \code{"reactRouter"} S3 class
and therefore dispatch to this method:
\code{\link{RouterProvider}}, \code{\link{createHashRouter}},
\code{\link{createBrowserRouter}}, \code{\link{createMemoryRouter}},
\code{\link{HashRouter}}, \code{\link{BrowserRouter}}, and
\code{\link{MemoryRouter}}. Inner pieces (\code{\link{Route}},
\code{\link{Link}}, \code{\link{Outlet}}, hooks, ...) are plain
\code{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 \code{shiny.tag} print method.
}
