Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<script setup>
import { ref, computed } from 'vue'
// all of these are automatically bound to the template
const a = ref(3)
const b = computed(() => a.value + 2)
const changeA = () => { a.value = 4 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment