vue-ref
You can use the callback to get a reference like react.
$ npm install vue-ref --saveVue<!-- vm.dom will be the DOM node -->hello <!-- vm.child will be the child component instance --> {{ 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.