Skip to content

Instantly share code, notes, and snippets.

View do-adams's full-sized avatar
:octocat:
All things web 🙌

Damian Adams do-adams

:octocat:
All things web 🙌
View GitHub Profile
@do-adams
do-adams / tour_of_reactive.js
Created June 11, 2022 17:50
A Tour of reactive
// A Tour of reactive()
import { reactive, ref, watch } from 'vue'
/**
reactive() - Type Definition:
function reactive<T extends object>(target: T): UnwrapNestedRefs<T>
**/
@do-adams
do-adams / tour_of_ref.js
Created June 11, 2022 17:47
A Tour of ref
// A Tour of ref()
import { ref, reactive } from 'vue'
/**
ref() - Type Definition:
function ref<T>(value: T): Ref<UnwrapRef<T>>
interface Ref<T> {