Question · Vue.js course · Module 3: Reactivity
The ref() function
What is ref() used for in Vue 3?
Answer options
- It imports a module
- It creates a reference to a DOM element
- It creates a reactive reference to a primitive value or object
- It defines a function in a component
You can check the correct answer by solving this task in the CodeWorlds game.