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:
- <script setup>
- import { ref } from 'vue'
- const message = ref('Hello')
- </script>