diff --git a/src/v2/guide/render-function.md b/src/v2/guide/render-function.md index 43accc7266..762ba66903 100644 --- a/src/v2/guide/render-function.md +++ b/src/v2/guide/render-function.md @@ -106,15 +106,16 @@ createElement( }, // {String | Array} - // Children VNodes. Optional. + // Children VNodes, built using createElement(), + // or simply using strings to get 'text VNodes'. Optional. [ - createElement('h1', 'hello world'), + 'Some text comes first.', + createElement('h1', 'A headline'), createElement(MyComponent, { props: { - someProp: 'foo' + someProp: 'foobar' } - }), - 'bar' + }) ] ) ``` @@ -166,7 +167,7 @@ One thing to note: similar to how `v-bind:class` and `v-bind:style` have special directives: [ { name: 'my-custom-directive', - value: '2' + value: '2', expression: '1 + 1', arg: 'foo', modifiers: { @@ -181,7 +182,7 @@ One thing to note: similar to how `v-bind:class` and `v-bind:style` have special }, // The name of the slot, if this component is the // child of another component - slot: 'name-of-slot' + slot: 'name-of-slot', // Other special top-level properties key: 'myKey', ref: 'myRef'