vue-to-ref
v1.0.0
Published
Vue 3 enhanced toRef normalizing values, refs, and getters
Maintainers
Readme
Installation
npm install vue-to-refUsage
import { toRef } from 'vue-to-ref'
import { ref } from 'vue'
const plain = 'hello'
const refValue = toRef(plain)
console.log(refValue.value) // 'hello'
const existing = ref('world')
const converted = toRef(existing)
console.log(converted.value) // 'world'License
MIT
Extracted from VueUse for standalone use.
