File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ import MyComponent from './my-component'
52
52
export default {
53
53
render () {
54
54
return < MyComponent> hello< / MyComponent>
55
- }
55
+ },
56
56
}
57
57
```
58
58
@@ -119,25 +119,25 @@ render() {
119
119
### Directives
120
120
121
121
``` jsx
122
- < input vModel= " newTodoText" / >
122
+ < input vModel= { this . newTodoText } / >
123
123
```
124
124
125
125
with a modifier:
126
126
127
127
``` jsx
128
- < input vModel_trim= " newTodoText" / >
128
+ < input vModel_trim= { this . newTodoText } / >
129
129
```
130
130
131
131
with an argument:
132
132
133
133
``` jsx
134
- < input vOn: click= " newTodoText" / >
134
+ < input vOn: click= { this . newTodoText } / >
135
135
```
136
136
137
137
with an argument and modifiers:
138
138
139
139
``` jsx
140
- < input vOn: click_stop_prevent= " newTodoText" / >
140
+ < input vOn: click_stop_prevent= { this . newTodoText } / >
141
141
```
142
142
143
143
v-html:
@@ -151,13 +151,13 @@ v-html:
151
151
Transpiles arrow functions that return JSX into functional components, when they are either default exports:
152
152
153
153
``` jsx
154
- export default ({ props }) => < p> hello { props .message }< / p>
154
+ export default ({ props }) => < p> hello {props .message }< / p>
155
155
```
156
156
157
157
or PascalCase variable declarations:
158
158
159
159
``` jsx
160
- const HelloWorld = ({ props }) => < p> hello { props .message }< / p>
160
+ const HelloWorld = ({ props }) => < p> hello {props .message }< / p>
161
161
```
162
162
163
163
## Compatibility
You can’t perform that action at this time.
0 commit comments