Skip to content

Commit 77ebe02

Browse files
sylvainpolletvillardchrisvfritz
authored andcommitted
replace h by createElement (vuejs#645)
I guess this is an oversight.
1 parent 5abe123 commit 77ebe02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/render-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ render (createElement) {
391391
// in the form of { name: props => VNode | Array<VNode> }
392392
scopedSlots: {
393393
default: function (props) {
394-
return h('span', props.text)
394+
return createElement('span', props.text)
395395
}
396396
}
397397
})

0 commit comments

Comments
 (0)