How can I refresh or reset the ui/ form in Shiny?
I have this button in ui.R:
actionButton("resetInput", "Reset inputs")
What should I do in the server.R to reset the form?
observeEvent(input$resetInput, {
// refresh or reset the form
})
I tried this answer, but I get this error:
Warning: Error in library: there is no package called ‘shinyjs’
Does this package really exist?
Any better way of doing it without installing new packages?