myInput <- function(inputId, default = "") {
# The value of createReactShinyInput should be returned from input constructor functions.
createReactShinyInput(
inputId,
"myinput",
# At least one htmlDependency must be provided -- the JavaScript implementation of the input.
htmlDependency(
name = "my-input",
version = "1.0.0",
src = "www/mypackage/myinput",
package = "mypackage",
script = "myinput.js"
),
default
)
}
Run the code above in your browser using DataLab