Skip to content

Commit fba655e

Browse files
committed
better emphasize advantages of render functions with jsx
1 parent 270a796 commit fba655e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/guide/comparison.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,12 @@ render () {
126126
}
127127
```
128128

129-
In Vue, we also have [render functions](render-function.html) and even [support JSX](render-function.html#JSX), because sometimes it is useful to have the power of a full programming language. Render functions are not recommended for most components however.
129+
Render functions with JSX have a few advantages:
130+
131+
- You can use the power of a full programming language (JavaScript) to build your view.
132+
- The tooling support (e.g. linting, type checking, editor autocompletion) for JSX is in some ways more advanced than what's currently available for Vue templates.
133+
134+
In Vue, we also have [render functions](render-function.html) and even [support JSX](render-function.html#JSX), because sometimes you need that power. Render functions are not recommended for most components however.
130135

131136
Instead, we offer templates as a simpler alternative:
132137

0 commit comments

Comments
 (0)