Skip to content

Instantly share code, notes, and snippets.

@rodgeraraujo
Created October 20, 2020 17:40
Show Gist options
  • Save rodgeraraujo/63031410b59ea612b895f4e79a535dfe to your computer and use it in GitHub Desktop.
Save rodgeraraujo/63031410b59ea612b895f4e79a535dfe to your computer and use it in GitHub Desktop.
const { unref as $, ref, computed } from('vue');
const counter = ref(0);
const doubled = computed(() => $(counter) * 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment