You already know about reactive data sources. Views can be made reactive as well. Technically speaking, we make the view a reactive data source by storing it in the database and observing changes.
- Create a new app.
- Delete the default html, js, and css.
- Put the code below into a js file and run meteor.
- Then use the console to change either the View "html" property or the Number "val" property. (see code for examples)
- Try inserting and updating your own views and numbers.
N.B. The code is not an example of best practice, just a proof of concept. It relies on functions that are included in the Meteor Handlebars package. These functions could change or be removed in the future.