Skip to content

Commit fc3dd9c

Browse files
committed
translate restrictions section
1 parent 42e594e commit fc3dd9c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/guide/render-function.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,23 +212,23 @@ app.component('anchored-heading', {
212212
})
213213
```
214214

215-
## Constraints
215+
## Restrições
216216

217-
### VNodes Must Be Unique
217+
### VNodes devem ser únicos
218218

219-
All VNodes in the component tree must be unique. That means the following render function is invalid:
219+
Todos os _VNodes_ na árvore de componentes devem ser únicos. Isso significa que a função de renderização a seguir é inválida:
220220

221221
```js
222222
render() {
223223
const myParagraphVNode = Vue.h('p', 'hi')
224224
return Vue.h('div', [
225-
// Yikes - duplicate VNodes!
225+
// Éca - VNodes duplicados!
226226
myParagraphVNode, myParagraphVNode
227227
])
228228
}
229229
```
230230

231-
If you really want to duplicate the same element/component many times, you can do so with a factory function. For example, the following render function is a perfectly valid way of rendering 20 identical paragraphs:
231+
Se você realmente quiser duplicar o mesmo elemento/componente várias vezes, você pode fazê-lo com uma função fábrica (_factory function_). Por exemplo, a função de renderização a seguir é uma forma perfeitamente válida de renderizar 20 parágrafos idênticos:
232232

233233
```js
234234
render() {

0 commit comments

Comments
 (0)