State Management in JS using Proxy

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)

Want to receive my work as I publish it? Subscribe via email or RSS.

a giant foot-shaped snail with a house on its back. the house is still in construction, with a big crane towering above it The image is a stylized black-and-white illustration. In the lower left corner, there is a small, cozy-looking house with smoke rising from its chimney. The smoke, however, does not dissipate into the air but instead forms a dark, looming cloud. Within the cloud, the silhouette of a large, menacing face is visible, with its eyes and nose peeking through the darkness. The creature, perhaps a cat, appears to be watching over the house ominously, creating a sense of foreboding or unease.