Skip to content

Commit 5c0c710

Browse files
committed
docs: Add note about Vue Data Object for spreading
1 parent 7f0d718 commit 5c0c710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ render() {
7575
}
7676
```
7777

78-
with the spread operator:
78+
with the spread operator (object needs to be compatible with [Vue Data Object](https://vuejs.org/v2/guide/render-function.html#The-Data-Object-In-Depth)):
7979

8080
```jsx
8181
render() {
@@ -84,7 +84,7 @@ render() {
8484
placeholder: 'Enter your email'
8585
}
8686

87-
return <input {...inputAttrs} />
87+
return <input {...{ attrs: inputAttrs }} />
8888
}
8989
```
9090

0 commit comments

Comments
 (0)