showing results for - "vue createelement"
Luciano
14 May 2018
1Every element is a node.
2Every piece of text is a node. Even comments are nodes!
3A node is just a piece of the page. And as in a family tree, each node can have children (i.e. each piece can contain other pieces).
4Updating all these nodes efficiently can be difficult, but thankfully, you never have to do it manually.
5Instead, you tell Vue what HTML you want on the page,
6in a template:
7
8So in normal circumstance, you could write
9			<h1>{{ blogTitle }}</h1>
10            
11but with Vue createElement you could write it like this
12			render: function (createElement) {
13  				return createElement('h1', this.blogTitle)
14			}
15
16and both would return the same result