Skip to content

Commit 831ab95

Browse files
committed
#69 syntax-highlighting + indentation
1 parent 75692c7 commit 831ab95

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,24 +1898,24 @@ List of 300 VueJS Interview Questions
18981898
18991899
Let's take an example of simple Div markup and corresponding render function.
19001900
The HTML markup can be written in template tag as below,
1901-
```javascript
1901+
```vue
19021902
<template>
1903-
<div :class="{'is-rounded': isRounded}">
1904-
<p>Welcome to Vue render functions</p>
1905-
</div>
1903+
<div :class="{'is-rounded': isRounded}">
1904+
<p>Welcome to Vue render functions</p>
1905+
</div>
19061906
</template>
19071907
```
19081908
and the compiled down or explicit render function would appear as below,
19091909
```javascript
19101910
render: function (createElement) {
1911-
return createElement('div', {
1912-
'class': {
1913-
'is-rounded': this.isRounded
1911+
return createElement('div', {
1912+
'class': {
1913+
'is-rounded': this.isRounded
19141914
}
1915-
}, [
1916-
createElement('p', 'Welcome to Vue render functions')
1917-
]);
1918-
},
1915+
}, [
1916+
createElement('p', 'Welcome to Vue render functions')
1917+
]);
1918+
}
19191919
```
19201920
**Note:** The react components are built with render functions in JSX.
19211921

0 commit comments

Comments
 (0)