menu_book Course Curriculum (Vue 3) expand_more
SFC & Templates
Reactivity
Components
Forms & DOM
Async & Routing Patterns
toRef
Learn toRef in Vue 3 with a dedicated explanation, a concept-specific example, a production caution, and a mastery check.
12 min read
•
Beginner
vue-3-014.vue
vue
<script setup>
import { reactive,toRef } from "vue"; const user=reactive({name:"Mina"}); const name=toRef(user,"name")
</script>
<template><input v-model="name"></template>
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content