While people are arguing about Svelte on the orange site, please enjoy my new reactive state library™:
const state = new Proxy(
{},
{
set(target, property, value) {
target[property] = value;
renderUpdate();
return true;
},
}
);
(I like Svelte)
(let's call the library Ergo)
(don't overthink this, I didn't)