docs: fix code example (#13810)

backporting from https://github.com/sveltejs/svelte.dev/pull/546
pull/13818/head
Simon H 2 weeks ago committed by GitHub
parent 95980d1f08
commit 7ecc6c076c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save