Skip to content

Commit 68718e3

Browse files
Sync kit docs (#1017)
sync kit docs Co-authored-by: Rich-Harris <[email protected]>
1 parent a39bd44 commit 68718e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/svelte.dev/content/docs/kit/20-core-concepts/50-state-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Instead, we need to make the value [_reactive_](/tutorial/svelte/state):
154154
/** @type {{ data: import('./$types').PageData }} */
155155
let { data } = $props();
156156
157-
+++ let wordCount = $state(data.content.split(' ').length);
157+
+++ let wordCount = $derived(data.content.split(' ').length);
158158
let estimatedReadingTime = $derived(wordCount / 250);+++
159159
</script>
160160
```

0 commit comments

Comments
 (0)