1👍
This is how it should be
<script setup>
import { ref } from 'vue'
const number = ref(1);
function getCurrentNumber() {
number.value++
console.log(number.value)
}
</script>
<template>
<p @click="getCurrentNumber">Hello, this is a test to display {{ number }}</p>
</template>
Here is a working example.
Source:stackexchange.com