Skip to content

Commit 0aeb434

Browse files
authored
docs: update 10-routing.md to use Svelte 5 syntax (#14910)
1 parent 5b3b2a5 commit 0aeb434

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

documentation/docs/20-core-concepts/10-routing.md

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

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

0 commit comments

Comments
 (0)