Skip to content

Commit 80b1723

Browse files
LinusBorgThorsten Luenborg
andauthored
fix: use proper flat vnode format in example. (vuejs#223)
The last example in the render function migration guide used old Vue 2 syntax in a few places. Co-authored-by: Thorsten Luenborg <[email protected]>
1 parent 4ae37da commit 80b1723

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/migration/render-function-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ In 3.x, the entire VNode props structure is flattened. Using the example from ab
116116
{
117117
class: ['button', 'is-outlined'],
118118
style: { color: '#34495E' },
119-
attrs: { id: 'submit' },
119+
id: 'submit',
120120
innerHTML: '',
121-
on: { click: submitForm },
121+
onClick: submitForm,
122122
key: 'submit-button'
123123
}
124124
```

0 commit comments

Comments
 (0)