Nothing
library(shiny)
ui <- reactRouter::RouterProvider(
router = reactRouter::createHashRouter(
reactRouter::Route(
id = "root",
path = "/",
loader = reactRouter::JS(
"async () => { return { title: 'Root Data', version: 1 }; }"
),
element = div(
reactRouter::Outlet()
),
reactRouter::Route(
path = "child",
element = div(
div(
id = "rootDataAll",
reactRouter::useRouteLoaderData(
tags$span(),
routeId = "root"
)
),
div(
id = "rootDataTitle",
reactRouter::useRouteLoaderData(
tags$span(),
routeId = "root",
selector = "title"
)
)
)
)
)
)
)
server <- function(input, output, session) {}
shinyApp(ui, server)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.