ReactR Widgets for Shiny apps
You can install from GitHub:
# you need branch 'input-binding' from ReactR
remotes::install_github("react-R/reactR@input-binding")
remotes::install_github("pvictor/shinyReactWidgets")
Widget for react-select
library(shiny)
library(shinyReactWidgets)
ui <- fluidPage(
tags$h1("react-select example"),
select_input(
inputId = "select",
choices = month.name,
multi = FALSE
),
verbatimTextOutput("res")
)
server <- function(input, output, session) {
output$res <- renderPrint({
input$select
})
}
shinyApp(ui, server)