← Fullstack with Vue.jsQuestion 37 of 62
When should you use ref() vs reactive()?
📘 Explanation
ref() is meant for single primitive values while reactive() is meant for objects with multiple properties, which is the standard guidance in Vue's Composition API. The other options incorrectly tie these functions to template-only usage, async versus sync data, or simply swap the correct roles of ref() and reactive().
Related questions
← PreviousNo login needed