Deep Dive: Reactive 'Tale of Two Systems' (Refs vs. Reactive Objects)
Updated May 4, 2026
Short answer
ref creates an object with a .value property to track changes; reactive uses Proxies to track changes to object properties directly.
Deep explanation
Architecturally, ref is the recommended default for most state because it works for all data types (primitives and objects) and makes 'reactivity' explicit via the .value property. reactive is powerful for collections of data but has 'gotchas': you cannot destructure a reactive object without losing reactivity, and you cannot replace the entire object (e.g., state = newObject). ref handles replacement seamlessly via state.value = newObject.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro