[Solved] Need to convert js to vuejs [closed]
<template> <button :class=”{ active: clicked }” :onclick=”clicked = true”> {{ clicked ? ‘Thanks!’ : ‘Click me!’ }} </button> </template> <script setup> import {ref} from ‘vue’ const clicked = ref(false) </script> solved Need to convert js to vuejs [closed]