Re: [WICG/webcomponents] [templates] A declarative JavaScript templating API (Issue #1069)

I was just to add a note about signals. I think this is a great place to start adding signals integration to the DOM.

If you use a signal in a binding, that binding should be bale to update without a full re-render.:

```ts
const count = new Signal.State(0);

document.body.render(HTMLElement.html`<p>count: ${count}</p>`);

count.set(count.get() + 1);
```

But not every bit of state in a page is or ever will be signals, so I think the ability to have a fast re-render is necessary.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1069#issuecomment-2293918624
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/1069/2293918624@github.com>

Received on Friday, 16 August 2024 17:52:28 UTC