mirror of https://github.com/sveltejs/svelte
10 lines
140 B
10 lines
140 B
6 years ago
|
<script>
|
||
|
import { count } from './stores.js';
|
||
|
|
||
|
function reset() {
|
||
|
count.set(0);
|
||
|
}
|
||
|
</script>
|
||
|
|
||
2 years ago
|
<button on:click={reset}> reset </button>
|