Skip to content

Makes a render() feature more obvious to the reader + typos #952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions src/v2/guide/render-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
})
]
)
```
Expand Down Expand Up @@ -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: {
Expand All @@ -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'
Expand Down