Skip to content

Instantly share code, notes, and snippets.

@12cassie34
Created June 13, 2022 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 12cassie34/8994bda4bc1e56ce1e6589cb1085fa33 to your computer and use it in GitHub Desktop.
Save 12cassie34/8994bda4bc1e56ce1e6589cb1085fa33 to your computer and use it in GitHub Desktop.
Vue Reactivity
import { ref, computed } from 'vue'
const A = ref(1)
const B = ref(2)
const C = computed(() => A.value + B.value)
A.value = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment