GitHub - vueComponent/vue-ref: You can use the callback to get a reference like react at vue2.x (original) (raw)

vue-ref

You can use the callback to get a reference like react.

NPM version NPM downloads

$ npm install vue-ref --save

import ref from 'vue-ref' Vue.use(ref)

hello

{{ n }}

Property Description Type
v-ref a callback function function(dom | vnode, key)

In this callback function, you should not change any reactive data. Otherwise the render will enter an infinite loop.