-
Notifications
You must be signed in to change notification settings - Fork 132
Closed
Description
Note the h function, which is a shorthand for a Vue instance's $createElement method, must be in the scope where the JSX is. Since this method is passed to component render functions as the first argument, in most cases you'd do this:
Vue.component('jsx-example', {
render (h) { // <-- h must be in scope
return <div id="foo">bar</div>
}
})
I just want to know why it is called h
and how to remember it :)
amanpatel, chuanxd, FernandoBasso, zero298, gepetobio and 6 more
Metadata
Metadata
Assignees
Labels
No labels