Vue how to use $attrs in the component of the render function

export default {

props: {
    
},
data(){
    return {
    }
},
mounted(){
    console.info(this.$attrs); //$attrs
},
render(h){
    return h("div",""hello)
}

}

Oct.11,2021

see the example using $attrs in render

you can combine inheritAttrs to understand $attrs

.
Menu