Skip to content

Commit 8e32180

Browse files
authored
docs: fix code example
backporting from sveltejs/svelte.dev#546
1 parent d16a9da commit 8e32180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/99-legacy/40-legacy-component-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ component.$set({ answer: 42 });
8282
> ```js
8383
> // @noErrors
8484
> let props = $state({ answer: 42 });
85-
> const component = mount(Component);
85+
> const component = mount(Component, { props });
8686
> // ...
8787
> props.answer = 24;
8888
> ```

0 commit comments

Comments
 (0)