7 lines
112 B

<script>
export let user;
export let prop;
</script>
<input bind:value={user[prop]}>
<p>hello {user.name}</p>