What is the difference between ref and reactive? When do you use each?
ref wraps any value — including primitives — in an object with a .value property, while reactive returns a Proxy and only works for objects. ref survives destructuring and reassignment, which reactive does not: destructuring a reactive object yields plain values that lose reactivity. The common guidance is to default to ref and reach for reactive only for a closely related group of fields.