menu_book Course Curriculum (Vue 3) expand_more
SFC & Templates
Reactivity
Components
Forms & DOM
Async & Routing Patterns
computed
Learn computed in Vue 3 with a dedicated explanation, a concept-specific example, a production caution, and a mastery check.
12 min read
•
Beginner
vue-3-011.vue
vue
<script setup>
import { ref,computed } from "vue"; const price=ref(12); const qty=ref(3); const total=computed(()=>price.value*qty.value)
</script>
<template><strong>{{total}}</strong></template>
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content