- From: Maurizio De Santis <notifications@github.com>
- Date: Wed, 21 Aug 2024 08:10:17 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 21 August 2024 15:10:21 UTC
Hello everyone, I have some (most likely) naive questions:
1. How would this integrate with events? Would something like this work?
```js
const count = new Signal.State(0);
document.body.render(HTMLElement.html`
<div>
<p>You clicked ${count} times</p>
<button onClick=${() => count.set(count.get() + 1)}>
Click me
</button>
</div>
`);
```
2. How would conditionals look?
3. How would loops look?
--
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1069#issuecomment-2302314785
You are receiving this because you are subscribed to this thread.
Message ID: <WICG/webcomponents/issues/1069/2302314785@github.com>
Received on Wednesday, 21 August 2024 15:10:21 UTC