Click in order · Vue.js course · Module 1: Vue and Vite

Script setup syntax

Arrange the correct structure of a script setup section with a reactive variable:

Items to click

  • </script>
  • const message = ref('Hello')
  • <script setup>
  • import { ref } from 'vue'
Show the answer

Correct order:

  1. <script setup>
  2. import { ref } from 'vue'
  3. const message = ref('Hello')
  4. </script>