Skip to content

❗ This is a read-only mirror of the CRAN R package repository. reactRouter — 'React Router' for 'shiny' Apps and 'Quarto'. Homepage: https://felixluginbuhl.com/reactRouter/ Report bugs for this package: https://github.com/lgnbhl/reactRouter/issues

License

Notifications You must be signed in to change notification settings

cran/reactRouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reactRouter

CRAN status Grand total R-CMD-check LinkedIn

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

Example

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.

Contribute

Would you like to contribute to the package? Have a look at the current roadmap.

About

❗ This is a read-only mirror of the CRAN R package repository. reactRouter — 'React Router' for 'shiny' Apps and 'Quarto'. Homepage: https://felixluginbuhl.com/reactRouter/ Report bugs for this package: https://github.com/lgnbhl/reactRouter/issues

Resources

License

Stars

Watchers

Forks

Packages

No packages published