Skip to content

Commit 2610851

Browse files
authored
docs: add prefix with on props example
1 parent e1c8846 commit 2610851

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ render (h) {
9494
return h('div', {
9595
// Component props
9696
props: {
97-
msg: 'hi'
97+
msg: 'hi',
98+
onCustomEvent: this.customEventHandler
9899
},
99100
// normal HTML attributes
100101
attrs: {
@@ -143,8 +144,9 @@ The equivalent of the above in Vue 2.0 JSX is:
143144
render (h) {
144145
return (
145146
<div
146-
// normal attributes or component props.
147+
// normal attributes or prefix with on props.
147148
id="foo"
149+
propsOnCustomEvent={this.customEventHandler}
148150
// DOM properties are prefixed with `domProps`
149151
domPropsInnerHTML="bar"
150152
// event listeners are prefixed with `on` or `nativeOn`

0 commit comments

Comments
 (0)