Skip to content

Commit 6b67b0f

Browse files
committed
translate JSX section
1 parent 3b71333 commit 6b67b0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/guide/render-function.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ render() {
380380

381381
## JSX
382382

383-
If we're writing a lot of `render` functions, it might feel painful to write something like this:
383+
Se estivermos escrevendo muitas funções `render`, pode ficar doloroso escrever algo assim:
384384

385385
```js
386386
Vue.h(
@@ -392,13 +392,13 @@ Vue.h(
392392
)
393393
```
394394

395-
Especially when the template version is so concise in comparison:
395+
Especialmente quando a versão usando template é mais concisa em comparação:
396396

397397
```vue-html
398398
<anchored-heading :level="1"> <span>Hello</span> world! </anchored-heading>
399399
```
400400

401-
That's why there's a [Babel plugin](https://github.com/vuejs/jsx-next) to use JSX with Vue, getting us back to a syntax that's closer to templates:
401+
É por isso que existe um [_plugin_ Babel](https://github.com/vuejs/jsx-next) para usar JSX com Vue, nos colocando em uma sintaxe que é mais próxima dos templates:
402402

403403
```jsx
404404
import AnchoredHeading from './AnchoredHeading.vue'
@@ -416,7 +416,7 @@ const app = createApp({
416416
app.mount('#demo')
417417
```
418418

419-
For more on how JSX maps to JavaScript, see the [usage docs](https://github.com/vuejs/jsx-next#installation).
419+
Para saber mais sobre como JSX mapeia para o JavaScript, veja a [documentação de uso](https://github.com/vuejs/jsx-next#installation).
420420

421421
## Template Compilation
422422

0 commit comments

Comments
 (0)