Skip to content

Commit 8839d73

Browse files
authored
more interesting hello world (#1428)
1 parent 0b335d6 commit 8839d73

File tree

1 file changed

+7
-1
lines changed
  • apps/svelte.dev/content/examples/00-introduction/00-hello-world/+assets

1 file changed

+7
-1
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<script>
2-
let name = 'world';
2+
let name = $state('world');
3+
let count = $state(0);
34
</script>
45

56
<h1>Hello {name}!</h1>
7+
8+
<input bind:value={name} />
9+
<button onclick={() => count += 1}>
10+
clicks: {count}
11+
</button>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy