Learn R Programming

shiny.react (version 0.4.0)

updateReactInput: Update 'React' input

Description

Updates inputs created with the help of InputAdapter function (part of the JavaScript interface). Analogous to shiny::updateX() family of functions, but generic.

Usage

updateReactInput(session = shiny::getDefaultReactiveDomain(), inputId, ...)

Value

Nothing. This function is called for its side effects.

Arguments

session

Session object passed to function given to shinyServer.

inputId

Id of the input object.

...

Props to modify.

Details

If you're creating a wrapper package for a 'React' library, you'll probably want to provide a dedicated update function for each input to imitate 'Shiny' interface.