Vue 3 Reactivity System
<script setup>
import { ref, computed } from 'vue'
const firstName = ref('Alex')
const lastName = ref('Morgan')
// Computed property automatically updates only when dependencies change!
const fullName = computed(() => `${firstName.value} ${lastName.value}`)
</script>
<template>
<p>Full Name: {{ fullName }}</p>
</template>