mirror of https://github.com/sveltejs/svelte
[docs] adjust function name (#6495)
parent
f2fa7b2186
commit
8457a73cef
@ -1,11 +1,11 @@
|
|||||||
<script>
|
<script>
|
||||||
let count = 0;
|
let count = 0;
|
||||||
|
|
||||||
function handleClick() {
|
function incrementCount() {
|
||||||
// event handler code goes here
|
// event handler code goes here
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<button>
|
<button>
|
||||||
Clicked {count} {count === 1 ? 'time' : 'times'}
|
Clicked {count} {count === 1 ? 'time' : 'times'}
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
Reference in new issue