Skip to content

Instantly share code, notes, and snippets.

@phptechs
Created December 30, 2023 10:59
Show Gist options
  • Save phptechs/2b9f6c802c0a626a516df470ced3ccc1 to your computer and use it in GitHub Desktop.
Save phptechs/2b9f6c802c0a626a516df470ced3ccc1 to your computer and use it in GitHub Desktop.
Vue3 template
<script setup>
import { ref } from "vue"
const count = ref(0)
</script>
<template lang="pug">
div
button.btn(@click='count++') {{ count }}
</template>
<style lang="scss" scoped>
.btn {
display: block;
border: none;
background-color: #04AA6D;
padding: 14px 28px;
font-size: 16px;
cursor: pointer;
text-align: center;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment