Skip to contents

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

Install reactRouter with:

remotes::install_github("lgnbhl/reactRouter")

More tutorials

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