From 594b3ecf378307aed63f552a47e16e44c78dc1a8 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 12 Aug 2024 06:34:38 -0400 Subject: [PATCH] note breaking change --- .../docs/content/03-appendix/02-breaking-changes.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md b/sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md index 95469ccbaf..2653ab8cc8 100644 --- a/sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md +++ b/sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md @@ -222,6 +222,16 @@ This is [no longer true in Svelte 5](/#H4sIAAAAAAAAE4WQwU7DMAyGX8VESANpXe8lq9Q8A ``` +### Dot notation indicates a component + +In Svelte 4, `` would create an element with a tag name of `"foo.bar"`. In Svelte 5, `foo.bar` is treated as a component instead. This is particularly useful inside `each` blocks: + +```svelte +{#each items as item} + +{/each} +``` + ## Other breaking changes ### Stricter `@const` assignment validation