Vue · Senior · Question 2 of 75
Why is reactive(obj) === obj false, and why does it matter?
- ✓Correct answer:
reactivereturns a Proxy; mutating the original object bypasses tracking, so the UI doesn't update - 2Vue clones the object deeply
- 3It is true; Vue mutates the object in place
Explanation
Always work with the proxy. Calling reactive on the same object returns the same proxy, and toRaw(proxy) gives back the original when you need untracked access.