Skip to content

Commit 6584bed

Browse files
authored
docs: fix link to cookies API (sveltejs#489)
1 parent 996dcd2 commit 6584bed

File tree

1 file changed

+1
-1
lines changed
  • content/tutorial/03-sveltekit/06-forms/01-the-form-element

1 file changed

+1
-1
lines changed

content/tutorial/03-sveltekit/06-forms/01-the-form-element/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: The <form> element
44

55
In the [chapter on loading](page-data), we saw how to get data from the server to the browser. Sometimes you need to send data in the opposite direction, and that's where `<form>` — the web platform's way of submitting data — comes in.
66

7-
Let's build a todo app. We've already got an in-memory database set up in `src/lib/server/database.js`, and our `load` function in `src/routes/+page.server.js` uses the [`cookies`](https://kit.svelte.dev/docs/load#cookies-and-headers) API so that we can have a per-user todo list, but we need to add a `<form>` to create new todos:
7+
Let's build a todo app. We've already got an in-memory database set up in `src/lib/server/database.js`, and our `load` function in `src/routes/+page.server.js` uses the [`cookies`](https://kit.svelte.dev/docs/load#cookies) API so that we can have a per-user todo list, but we need to add a `<form>` to create new todos:
88

99
```svelte
1010
/// file: src/routes/+page.svelte

0 commit comments

Comments
 (0)