4 ms·
The when feature looks genuinely useful. Shame on you! But in another language an event listening on variable change privative would be pretty cool. In JS you
by quickthrower2 3y ago
The when feature looks genuinely useful. Shame on you! But in another language an event listening on variable change privative would be pretty cool.
In JS you could then replace
[x,setX] = useState(0);
with
x = 0;
- notpushkin 3y agoYou may be pleasantly surprised with how it works in Svelte: https://svelte.dev/tutorial/reactive-assignments https://svelte.dev/tutorial/reactive-assignments