Agenda
Reactivity overview
How do other frameworks work?
Reactive programming
Walking the graph
Your turn
Conclusion
Agenda
Reactivity overview
How do other frameworks work?
Reactive programming
Walking the graph
Your turn
Conclusion
Other web application frameworks use event-driven programming:
Streamlit
Dash / Panel / Gradio
# This is not how shiny works!
library(gWidgets)
txt <- gtext("Customize me", container = gwindow(),
handler = function(h, ...) {
# Do something in response to text changing
}
)
btn <- gbutton("Click me", container = gwindow(),
handler = function(h, ...) {
# Do something in response to a button click
}
)
Agenda
Reactivity overview
How do other frameworks work?
Reactive programming
Walking the graph
Your turn
Conclusion
Note
shiny
team have more than 10 years of real-world experience with this form of reactivityAgenda
Reactivity overview
How do other frameworks work?
Reactive programming
Walking the graph
Your turn
Conclusion
Agenda
Reactivity overview
How do other frameworks work?
Reactive programming
Walking the graph
Your turn
Conclusion
Draw the graph of this application:
Hint: you need 4 elements and draw the arrows between these.
Agenda
Reactivity overview
How do other frameworks work?
Reactive programming
Walking the graph
Your turn
Conclusion