docs: matches hint with existing structure and solution (#8915)

pull/8920/head
Alex Morgan 1 year ago committed by GitHub
parent d516bb06e1
commit bb5d3948ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,8 +5,10 @@ title: Key blocks
Key blocks destroy and recreate their contents when the value of an expression changes.
```svelte
{#key value}
<div transition:fade>{value}</div>
{#key number}
<span style="display: inline-block" in:fade>
{number}
</span>
{/key}
```

Loading…
Cancel
Save