just the bare necessities of state management.
Hotlink it from
// create an observable value:const num =// subscribe to value changes:const off = num// unsubscribe that listener:// set the value, invoking any listeners:// get the current value:// 43
valoo-lite.mjs: lighter 120b version, but doesn't support unsubscribing.
valoo-original.mjs: v1-compatible, with subscribe handled via overloading.
The idea here was first implemented in Mithril. I believe the subscription mechanism is new though.
Apache-2.0. Copyright 2018 Google LLC.