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; > ```