mirror of https://github.com/vuejs/core.git
16 lines
188 B
Vue
16 lines
188 B
Vue
|
<script setup>
|
||
|
import { ref } from 'vue'
|
||
|
|
||
|
const count = ref(0)
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<button @click="count++">{{ count }}</button>
|
||
|
</template>
|
||
|
|
||
|
<style>
|
||
|
button {
|
||
|
color: red;
|
||
|
}
|
||
|
</style>
|