1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-01 12:22:15 +02:00

🐛 🔤 types 3ps

This commit is contained in:
2025-03-05 18:00:04 +01:00
parent 02f7b3fd67
commit 49243b978a
8 changed files with 99 additions and 49 deletions

View File

@ -1,9 +1,9 @@
import { S } from "deka-dom-el/signals";
// A — `signal` represents a reactive value
// PART 1 — `signal` represents a reactive value
const signal= S(0);
// B — just reacts on signal changes
// PART 2 — just reacts on signal changes
S.on(signal, console.log);
// C — just updates the value
// PART 3 — just updates the value
const update= ()=> signal.set(signal.get()+1);
update();