diff --git a/src/guide/extras/render-function.md b/src/guide/extras/render-function.md index 1039ae8df4..ad2cb21171 100644 --- a/src/guide/extras/render-function.md +++ b/src/guide/extras/render-function.md @@ -39,6 +39,10 @@ h('div', { id: 'foo' }) // Vue automatically picks the right way to assign it h('div', { class: 'bar', innerHTML: 'hello' }) +// props modifiers such as .prop and .attr can be added +// with '.' and `^' prefixes respectively +h('div', { '.name': 'some-name', '^width': '100' }) + // class and style have the same object / array // value support that they have in templates h('div', { class: [foo, { bar }], style: { color: 'red' } })