Question · Vue.js course · Module 3: Reactivity

Recommended reactivity practices

What is the recommended approach to reactivity in Vue 3?

Answer options

  • Always use reactive() for everything
  • Avoid reactivity and use direct DOM manipulation
  • Always use shallowRef()
  • Use ref() for primitives and reactive() for objects, or ref() for everything

You can check the correct answer by solving this task in the CodeWorlds game.