Summary
We first introduced the optional State
argument to callback function decorators. We saw how by combining it with Input
, we can defer the execution of functions until the user decides to execute them. We also ran several examples that added buttons to invoke the execution. We then created a simple app where the user's inputs to a certain component were used to dynamically populate options of another component that was "waiting." Those new options were in turn used to create another component.
Another interesting application of simple principles was allowing users to add new components having dynamic content.
We finally introduced the most powerful and flexible feature, the pattern-matching callbacks. We created an app where users are able to add as many charts as they want. Furthermore, those charts acted independently from one another, and users were empowered to customize their own dashboard.
That was a lot to cover, and we turn next to another feature...