Skip to content

Commit cc6b4c2

Browse files
committed
Maintain js code highlighting.
Wrap because class is JS reserved keyword.
1 parent cd10bc8 commit cc6b4c2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/guide/render-function.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ createElement(
151151
// the component using vm.$emit.
152152
nativeOn: {
153153
click: this.nativeClickHandler
154-
}
154+
},
155155
// Same API as `v-bind:class`
156-
class: {
156+
'class': {
157157
foo: true,
158158
bar: false
159159
},
@@ -505,5 +505,3 @@ createElement('keep-alive', {
505505
}
506506
})
507507
```
508-
509-

0 commit comments

Comments
 (0)