Vue · Junior · Question 74 of 75

Which is the recommended default for reactive state in the Composition API?

Explanation

The Vue docs recommend ref as the primary API because reactive only works with objects and loses reactivity on destructuring or replacement.

Further reading

Problem with a question

Vue · Junior · question 74

Test yourself

Take the Vue · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz