docs icon indicating copy to clipboard operation
docs copied to clipboard

Add VNode type as the first argument of `h`

Open silentmantra opened this issue 9 months ago • 1 comments

https://vuejs.org/api/render-function.html#h

I've tried to pass a vnode as the first argument and additional props, what I expected is that would work and it does. So basically h (when I looked into the code) redirects arguments to cloneVNode. I guess that's a reliable behavior. If so could we include a vnode as a proper type for the first h's argument? The overhead is very small and it sometimes faster just use h if it's already imported.

silentmantra avatar Apr 26 '24 11:04 silentmantra