tinyReactive Samples

Code for all samples can be seen from browser devtools. Its not minimized or bundled.

Minimal - counter increment

  • Simple HTML+js imports tinyReactive with <script>.
  • Creates a store with a single counter property, with a single subscription.
Open counter app

Full - tasks app

  • Notifications pane shows state change events dispatched to subscribers.
  • Imports the store as an ES6 module.
  • Saves and restores store state from local storage.
  • Subscribes multiple components to different parts of the same state object.
Open tasks app