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