You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/binding-store-deep/main.svelte

8 lines
170 B

<script>
import { writable } from 'svelte/store';
export const user = writable({ name: 'world' });
</script>
<input bind:value={$user.name}>
<p>hello {$user.name}</p>