The goal of reactRouter is to provide a wrapper around React Router (v6).
You can easily add URL pages in Quarto document or R shiny like so:
library(reactRouter)
HashRouter(
NavLink(to = "/", "Main"),
NavLink(to = "/analysis", "Analysis"),
Routes(
Route(path = "/", element = "Main content"),
Route(path = "/analysis", element = "Analysis content")
) )
#remotes::install_github("lgnbhl/reactRouter") # development version
install.packages("reactRouter")
Get started with a showcase example:
# print all examples available: reactRouterExample()
reactRouterExample("basic")
Read the vignette here for detailed use cases with Quarto and R Shiny.
Would you like to contribute to the package? Have a look at the current roadmap.