Fix syntax alignment and visiblity for await example in docs

Updated the alignment and visiblity for the await example.
pull/17043/head
Iustin G 4 weeks ago committed by GitHub
parent da00abe116
commit f21f606c18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -70,10 +70,10 @@ Similarly, if you only want to show the error state, you can omit the `then` blo
``` ```
> [!NOTE] You can use `#await` with [`import(...)`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) to render components lazily: > [!NOTE] You can use `#await` with [`import(...)`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) to render components lazily:
>
> ```svelte ```svelte
> {#await import('./Component.svelte') then { default: Component }} {#await import('./Component.svelte') then { default: Component }}
> <Component /> <Component />
> {/await} {/await}
> ``` ```

Loading…
Cancel
Save