mirror of https://github.com/sveltejs/svelte
10 lines
228 B
10 lines
228 B
6 years ago
|
<script>
|
||
|
import { count } from './stores.js';
|
||
|
</script>
|
||
|
|
||
|
<h1>The count is {$count}</h1>
|
||
|
|
||
|
<button on:click={count.increment}>+</button>
|
||
|
<button on:click={count.decrement}>-</button>
|
||
2 years ago
|
<button on:click={count.reset}>reset</button>
|