Skip to content

Commit 0709259

Browse files
authored
advent of svelte day 4 (#930)
1 parent fb84f19 commit 0709259

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

apps/svelte.dev/content/blog/2024-12-01-advent-of-svelte.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ If you just want to render something in an `{#each ...}` block _n_ times, and do
3131
You can now export snippets from a component's `<script module>`, for use in other components, as long as those snippets don't reference anything belonging to the component instance.
3232

3333
- [docs](/docs/svelte/snippet#Exporting-snippets)
34-
- [demo](/playground/16b7dd7105c248e59ec8a437697f588d?version=5.5.0)
34+
- [demo](/playground/16b7dd7105c248e59ec8a437697f588d)
3535

36-
## Day 4
36+
## Day 4: form control default values
3737

38-
Coming soon!
38+
When you reset a form, the value of each `<input>` element reverts to its `defaultValue`. This is normally the empty string, but you can now control it directly in your template.
39+
40+
- [docs](/docs/svelte/bind#input-bind:value)
41+
- [demo](/playground/b30cfac16c3c4a3ab3d76ad20a5925cf)
3942

4043
## Day 5
4144

0 commit comments

Comments
 (0)