Skip to content

Commit 3876861

Browse files
committed
add testcase
1 parent cde0812 commit 3876861

File tree

3 files changed

+4600
-0
lines changed

3 files changed

+4600
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<script>
2+
import { writable } from 'svelte/store';
3+
4+
const foo = writable(0)
5+
const bar = writable(0)
6+
$: $foo = $bar * 2
7+
</script>
8+
9+
<h1>$foo: {$foo}</h1>
10+
<h1>$bar: {$bar}</h1>
11+
<button on:click={()=>$foo++}>$foo++</button>
12+
<button on:click={()=>$bar++}>$bar++</button>

0 commit comments

Comments
 (0)