Skip to content

Commit

Permalink
docs: fix code example (#13847)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryAllen1 authored Oct 23, 2024
1 parent 3d3c98f commit 86ef181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/07-misc/07-v5-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ In Svelte 5, the `$props` rune makes this straightforward without any additional
export { klass as class};---
+++let { class: klass, ...rest } = $props();+++
</script>
<button {class} {...---$$restProps---+++rest+++}>click me</button>
<button class={klass} {...---$$restProps---+++rest+++}>click me</button>
```

> [!DETAILS] Why we did this
Expand Down

0 comments on commit 86ef181

Please sign in to comment.