Skip to content

Commit

Permalink
docs: fix code example (#13810)
Browse files Browse the repository at this point in the history
backporting from sveltejs/svelte.dev#546
  • Loading branch information
dummdidumm authored Oct 23, 2024
1 parent 95980d1 commit 7ecc6c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/99-legacy/40-legacy-component-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ component.$set({ answer: 42 });
> ```js
> // @noErrors
> let props = $state({ answer: 42 });
> const component = mount(Component);
> const component = mount(Component, { props });
> // ...
> props.answer = 24;
> ```
Expand Down

0 comments on commit 7ecc6c0

Please sign in to comment.