SimpleToolsFree Online Utilities

Interactive Flashcard Maker

Create New Flashcard
Deck Items (3)
1
Q: What is the primary function of Vue 3 Reactivity?
A: To automatically track dependencies when reading values and trigger updates when values change using JavaScript Proxies.
2
Q: What is the difference between ref() and reactive()?
A: ref() works for primitive and object values (requires .value in JS), while reactive() only works for objects/collections without needing .value.
3
Q: What does <script setup> do in Vue SFCs?
A: It provides a compile-time syntactic sugar for using Composition API inside Single File Components with cleaner boilerplate and better performance.