[whatwg/dom] Basic DOM reactivity (Issue #1049)

Suggesting to add a basic reactivity method for a DOM element, inspired by the latest (or maybe not so latest) changes in the frameworks/libraries landscape (mainly inspired by solidjs)
My suggestion is having a native dom element effect, that can later be extended by libraries (or remove the necessity of complicated reactive libraries)

```JavaScript
const triggerEffect = domElement.createEffect((value) => {
    // replaces the textContent of the element
    return `Hello ${value}`;
});
//...
triggerEffect("world");
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1049
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1049@github.com>

Received on Sunday, 23 January 2022 14:25:37 UTC