Problem Statement
What are computed properties and how do they differ from methods?
Explanation
computed() derives a value from reactive sources and caches the result until dependencies change. Methods re-run every call. Use computed for derived data (filters, totals, formatting) and methods for actions.
Code Solution
SolutionRead Only
import { ref, computed } from 'vue'
const first = ref('Ada'), last = ref('Lovelace')
const full = computed(() => `${first.value} ${last.value}`)