Update 31-legacy-svelte-self.md

Addresses https://github.com/sveltejs/svelte/issues/15160
pull/15161/head
Jamin Roberts 2 years ago committed by GitHub
parent e83ab1c038
commit 23d355ad9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -8,7 +8,7 @@ It cannot appear at the top level of your markup; it must be inside an if or eac
```svelte
<script>
export let count;
let { count } = $props();
</script>
{#if count > 0}
@ -25,7 +25,7 @@ It cannot appear at the top level of your markup; it must be inside an if or eac
> <!--- file: App.svelte --->
> <script>
> import Self from './App.svelte'
> export let count;
> let { count } = $props();
> </script>
>
> {#if count > 0}

Loading…
Cancel
Save