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

> ```ts
> const count = new Signal.State(0);
> 
> document.body.render(HTMLElement.html`<p>count: ${count}</p>`);
> 
> count.set(count.get() + 1);
> ```

If it could work like that, it would be nice.

But what if `count` is a function that returns a value from a signal? How would you know that the function value in that was found in the values list is a signal when it only sees a plain function?

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

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

Received on Saturday, 12 October 2024 03:25:07 UTC