note breaking change

pull/12798/head
Rich Harris 2 years ago
parent fe757e5709
commit 594b3ecf37

@ -222,6 +222,16 @@ This is [no longer true in Svelte 5](/#H4sIAAAAAAAAE4WQwU7DMAyGX8VESANpXe8lq9Q8A
<svelte:component this={Thing} />
```
### Dot notation indicates a component
In Svelte 4, `<foo.bar>` 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}
<item.component {...item.props} />
{/each}
```
## Other breaking changes
### Stricter `@const` assignment validation

Loading…
Cancel
Save