Learn R Programming

reactRouter

The goal of reactRouter is to provide a wrapper around React Router (v6).

Usage

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")
  )
)

Install

#remotes::install_github("lgnbhl/reactRouter") # development version

install.packages("reactRouter")

More tutorials

Read the vignette here for detailed use cases with Quarto and R Shiny.

Copy Link

Version

Install

install.packages('reactRouter')

Version

0.1.0

License

MIT + file LICENSE

Maintainer

F<c3><a9>lix Luginbuhl

Last Published

April 29th, 2025

Functions in reactRouter (0.1.0)

Outlet

Outlet
Link

Link
component

Documentation template for components
NavLink

NavLink
reactRouterDependency

react-router-dom JS dependency
MemoryRouter

MemoryRouter
HashRouter

HashRouter
Navigate

Navigate
Route

Route
Routes

Routes
reexports

Objects exported from other packages