// states.svelte.js
export let name = $state("John"); // a state to be shared by multiple components
<!-- Component.svelte -->
<script>
import { name } from "./states.svelte.js";
</script>
<p>Hello, my name is <input type="text" bind:value={name} /></p>
当迁移到 svelte5 时,我尝试用$state替换可写存储,但出现错误。Cannot bind to import (https://svelte.dev/e/constant_binding)
正确的做法是什么?