Skip to content

Commit e69765e

Browse files
kazuponchrisvfritz
authored andcommitted
replace more h to createElement (vuejs#646)
ref vuejs#645
1 parent 830eb0b commit e69765e

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
@@ -177,7 +177,7 @@ One thing to note: similar to how `v-bind:class` and `v-bind:style` have special
177177
// Scoped slots in the form of
178178
// { name: props => VNode | Array<VNode> }
179179
scopedSlots: {
180-
default: props => h('span', props.text)
180+
default: props => createElement('span', props.text)
181181
},
182182
// The name of a slot if the child of a component
183183
slot: 'name-of-slot'

0 commit comments

Comments
 (0)