From 8e3218012a37d5ab6d019ffb1433ca9d2d724ff4 Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Wed, 23 Oct 2024 09:47:54 +0200 Subject: [PATCH] docs: fix code example backporting from https://github.com/sveltejs/svelte.dev/pull/546 --- documentation/docs/99-legacy/40-legacy-component-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/99-legacy/40-legacy-component-api.md b/documentation/docs/99-legacy/40-legacy-component-api.md index 5bbe7e72374d..917e4d724bbb 100644 --- a/documentation/docs/99-legacy/40-legacy-component-api.md +++ b/documentation/docs/99-legacy/40-legacy-component-api.md @@ -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; > ```