<script setup lang="ts">
import { ref } from 'vue';

const props = defineProps(['counter']);

const count = ref<number>(props.counter);
</script>

<template>
 <h3>{{ count }}</h3>
 <button @click="()=>count++">+1</button>
</template>
