You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 scopereturn<divid="foo">bar</div>}})
I just want to know why it is called h and how to remember it :)
The text was updated successfully, but these errors were encountered:
It comes from the term "hyperscript", which is commonly used in many virtual-dom implementations. "Hyperscript" itself stands for "script that generates HTML structures" because HTML is the acronym for "hyper-text markup language".
I just want to know why it is called
h
and how to remember it :)The text was updated successfully, but these errors were encountered: