Still inevitably need to use js, DOM operations#
For example, Vue cannot add attributes to a
<div>
that only has an id attribute, and still needs to use js syntax
The concept of data returned by the ref() function is different in function
and <template>
tags#
<script setup>
import { ref } from "vue";
const ind = ref(0);
function add(){
ind.value++; // Here ind must be added with .value
}
</script>
<template>
<p>{{ind}}</p> // Here ind does not need to be
</template>