Skip to content

Commit 13b5da3

Browse files
github-actions[bot]svelte-docs-bot[bot]Ocean-OS
authored
Sync kit docs (#1658)
sync kit docs Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com> Co-authored-by: ComputerGuy <[email protected]>
1 parent 3547a75 commit 13b5da3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/svelte.dev/content/docs/kit/20-core-concepts/10-routing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,9 @@ By exporting `POST`/`PUT`/`PATCH`/`DELETE`/`OPTIONS`/`HEAD` handlers, `+server.j
320320
```svelte
321321
<!--- file: src/routes/add/+page.svelte --->
322322
<script>
323-
let a = 0;
324-
let b = 0;
325-
let total = 0;
323+
let a = $state(0);
324+
let b = $state(0);
325+
let total = $state(0);
326326

327327
async function add() {
328328
const response = await fetch('/api/add', {

0 commit comments

Comments
 (0)