File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments