<input @input="setLastName($event)" />
<input @input="setLastName"> <!-- passes default event object to callback function -->
<!-- v-model="someRef" -->
computed is basically a read-only ref
const firstName = ref('');
const lastName = ref(''),
const age = ref(31);
function setLastName(event) {
lastName.value = event.target.value;
}
const fullName = computed(function() {
return firstName.value + ' ' + lastName.value;
})