You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/instrumentation-update-expr.../main.svelte

15 lines
290 B

<script>
let foo = 0;
let bar = { bar: 0 };
</script>
<p>{foo}</p>
<button on:click={() => foo++}>foo++</button>
<button on:click={() => ++foo}>++foo</button>
<p>{bar.bar}</p>
<button on:click={() => bar.bar++}>bar.bar++</button>
<button on:click={() => ++bar.bar}>++bar.bar</button>