mirror of https://github.com/sveltejs/svelte
10 lines
158 B
10 lines
158 B
6 years ago
|
<script>
|
||
6 years ago
|
import { count } from './stores.js';
|
||
6 years ago
|
|
||
|
function increment() {
|
||
2 years ago
|
count.update((n) => n + 1);
|
||
6 years ago
|
}
|
||
|
</script>
|
||
|
|
||
2 years ago
|
<button on:click={increment}> + </button>
|