Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions documentation/docs/03-template-syntax/01-basic-markup.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ Markup inside a Svelte component can be thought of as HTML++.

A lowercase tag, like `<div>`, denotes a regular HTML element. A capitalised tag or a tag that uses dot notation, such as `<Widget>` or `<my.stuff>`, indicates a _component_.

Dot notation is resolved when the component is rendered. If any part of the expression can be `null` or `undefined`, guard it first:

```svelte
{#if Thing?.Item}
<Thing.Item />
{/if}
```

```svelte
<script>
import Widget from './Widget.svelte';
Expand Down