mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-07-30 15:20:15 +02:00
🔤 UI/UX/wording
This commit is contained in:
@@ -4,11 +4,11 @@ const count = S(0);
|
||||
|
||||
// 2. React to state changes
|
||||
S.on(count, value => {
|
||||
updateUI(value);
|
||||
if (value > 10) disableButton();
|
||||
updateUI(value);
|
||||
if (value > 10) disableButton();
|
||||
});
|
||||
|
||||
// 3. Update state on events
|
||||
button.addEventListener('click', () => {
|
||||
count.set(count.get() + 1);
|
||||
count.set(count.get() + 1);
|
||||
});
|
||||
|
Reference in New Issue
Block a user