Question · Vue.js course · Module 1: Vue and Vite

The ref() function in Vue 3

What is the ref() function used for in Vue 3?

Answer options

  • For creating routing
  • For styling components
  • For creating reactive variables
  • For importing files
Show the answer

Correct answer:

  • For creating reactive variables