mirror of https://github.com/sveltejs/svelte
Docs: Accurately name function (#4060)
parent
f99deeb67b
commit
7115601cd3
@ -1,11 +1,11 @@
|
||||
<script>
|
||||
let count = 0;
|
||||
|
||||
function handleClick() {
|
||||
function incrementCount() {
|
||||
count += 1;
|
||||
}
|
||||
</script>
|
||||
|
||||
<button on:click={handleClick}>
|
||||
<button on:click={incrementCount}>
|
||||
Clicked {count} {count === 1 ? 'time' : 'times'}
|
||||
</button>
|
||||
</button>
|
||||
|
Loading…
Reference in new issue