Mention since version of delcaration tags

pull/18322/head
7nik 3 days ago committed by GitHub
parent 2fae91af6d
commit 8b693f0e5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -20,6 +20,8 @@ Declaration tags define local variables inside markup with `const` or `let`:
```
<!-- codeblock:end -->
> [!NOTE] Declaration tags are available in Svelte 5.56 and newer.
> [!NOTE] The [`{@const ...}`](@const) syntax is considered legacy — use declaration tags instead.
When values should be reactive, you can use `$state` and `$derived`:

Loading…
Cancel
Save