Skip to content

Commit 96df765

Browse files
committed
make examples more consistent
1 parent f3af27b commit 96df765

File tree

2 files changed

+2
-14
lines changed
  • content/tutorial/01-svelte/02-reactivity/02-reactive-declarations

2 files changed

+2
-14
lines changed

content/tutorial/01-svelte/02-reactivity/02-reactive-declarations/app-a/src/lib/App.svelte

-12
This file was deleted.

content/tutorial/01-svelte/02-reactivity/02-reactive-declarations/app-b/src/lib/App.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
let count = 0;
33
$: doubled = count * 2;
44
5-
function handleClick() {
5+
function increment() {
66
count += 1;
77
}
88
</script>
99

10-
<button on:click={handleClick}>
10+
<button on:click={increment}>
1111
Clicked {count}
1212
{count === 1 ? 'time' : 'times'}
1313
</button>

0 commit comments

Comments
 (0)