docs: fix migration guide typo (#14155)

pull/14156/head
Pig Fang 2 months ago committed by GitHub
parent e6dd871819
commit 3d67cd53db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -36,7 +36,7 @@ In Svelte 4, a `$:` statement at the top level of a component could be used to d
</script> </script>
``` ```
As with `$state`, nothing else changes. `double` is still the number itself, and you read it directly, without a wrapper like `.value` or `getCount()`. As with `$state`, nothing else changes. `double` is still the number itself, and you read it directly, without a wrapper like `.value` or `getDouble()`.
A `$:` statement could also be used to create side effects. In Svelte 5, this is achieved using the `$effect` rune: A `$:` statement could also be used to create side effects. In Svelte 5, this is achieved using the `$effect` rune:

Loading…
Cancel
Save