vue2.0 has added a render method, and the official plan example is:
render: h=>h(app)
where h evolved from the createElement method
render: function(createElement){ return createElement(app) }
In es6, the writing method is: (There are only one return statement, return and {} can be omitted)
render: createElement=>createElement(app)
Changing createElement to h is the official writing method.
The official explanation for using h is:
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”.
It comes from the word hyperscript, which is usually used in the implementation of virtual-dom. Hyperscript itself refers to script scripts that generate HTML structures, because HTML is the abbreviation of hyper-text markup language (hypertext markup language)
createElement is used to generate HTML DOM elements, which is generated HTML structures above, that is, Hyperscript, so createElement is replaced by h.
The above article briefly discusses the h arrow function in render in Vue is all the content I have shared with you. I hope you can give you a reference and I hope you can support me more.