You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/content/learn/conditional-rendering.md
+1-5
Original file line number
Diff line number
Diff line change
@@ -626,11 +626,7 @@ export default function PackingList() {
626
626
627
627
Observe que você deve escrever `importance > 0 && ...` ao invés de `importance && ...` para que, se `importance` for `0`, `0` não seja renderizado como resultado!
628
628
629
-
<<<<<<< HEAD
630
-
Nessa solução, duas condições separadas são usadas para inserir um espaço entre o nome e a etiqueta de relevância. Alternativamente, você pode usar um fragmento com um espaço inicial: `importance > 0 && <> <i>...</i></>` ou adicionar um espaço imediatamente dentro do `<i>`: `importance > 0 && <i> ...</i>`.
631
-
=======
632
-
In this solution, two separate conditions are used to insert a space between the name and the importance label. Alternatively, you could use a Fragment with a leading space: `importance > 0 && <> <i>...</i></>` or add a space immediately inside the `<i>`: `importance > 0 && <i> ...</i>`.
633
-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
629
+
Nesta solução, duas condições separadas são usadas para inserir um espaço entre o nome e o rótulo de importância. Alternativamente, você pode usar um Fragment com um espaço à esquerda: `importance > 0 && <> <i>...</i></>` ou adicionar um espaço imediatamente dentro de `<i>`: `importance > 0 && <i> ...</i>`.
Copy file name to clipboardexpand all lines: src/content/learn/referencing-values-with-refs.md
-4
Original file line number
Diff line number
Diff line change
@@ -287,11 +287,7 @@ Você também não precisa se preocupar em [evitar a mutação](/learn/updating-
287
287
288
288
## Refs e o DOM {/*refs-and-the-dom*/}
289
289
290
-
<<<<<<< HEAD
291
-
Você pode apontar um ref para qualquer valor. No entanto, o caso de uso mais comum para um ref é acessar um elemento DOM. Por exemplo, isso é útil se você deseja focar um campo de entrada (input) programaticamente. Quando você passa um ref para um atributo `ref` em JSX, como `<div ref={myRef}>`, o React colocará o elemento DOM correspondente em `myRef.current`. Você pode saber mais sobre isso em [Manipulando o DOM com Refs.](/learn/manipulating-the-dom-with-refs)
292
-
=======
293
290
You can point a ref to any value. However, the most common use case for a ref is to access a DOM element. For example, this is handy if you want to focus an input programmatically. When you pass a ref to a `ref` attribute in JSX, like `<div ref={myRef}>`, React will put the corresponding DOM element into `myRef.current`. Once the element is removed from the DOM, React will update `myRef.current` to be `null`. You can read more about this in [Manipulating the DOM with Refs.](/learn/manipulating-the-dom-with-refs)
Copy file name to clipboardexpand all lines: src/content/learn/rendering-lists.md
+3-19
Original file line number
Diff line number
Diff line change
@@ -1084,11 +1084,7 @@ Aqui, `<Recipe {...recipe} key={recipe.id} />` é um atalho de sintaxe dizendo "
1084
1084
1085
1085
#### Lista com um separador {/*list-with-a-separator*/}
1086
1086
1087
-
<<<<<<< HEAD
1088
-
Esse exemplo renderiza um famoso haiku por Katsushika Hokusai, com cada linha envolta em uma tag `<p>`. Seu trabalho é inserir um separador `<hr />` entre cada parágrafo. Sua estrutura resultante deve se parecer com isso:
1089
-
=======
1090
1087
This example renders a famous haiku by Tachibana Hokushi, with each line wrapped in a `<p>` tag. Your job is to insert an `<hr />` separator between each paragraph. Your resulting structure should look like this:
1091
-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
1092
1088
1093
1089
```js
1094
1090
<article>
@@ -1147,11 +1143,7 @@ hr {
1147
1143
1148
1144
<Hint>
1149
1145
1150
-
<<<<<<< HEAD
1151
-
Você precisará converter `map` para um loop manual, ou então usar um fragment.
1152
-
=======
1153
-
You'll either need to convert `map` to a manual loop, or use a Fragment.
1154
-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
1146
+
Você precisará converter `map` em um loop manual ou usar um Fragment.
1155
1147
1156
1148
</Hint>
1157
1149
@@ -1214,11 +1206,7 @@ hr {
1214
1206
1215
1207
Usando o índice original da linha como `key` não funciona mais porque cada separador e parágrafo estão agora no mesmo array. Entretanto, você pode dar a cada uma delas uma key distinta usando um sufixo, por exemplo `key={i + '-text'}`.
1216
1208
1217
-
<<<<<<< HEAD
1218
-
Alternativamente, você pode renderizar uma coleção de fragmentos a qual contêm `<hr />` e `<p>...</p>`. Entretanto, o atalho de sintaxe `<>...</>` não suporta a passagem de keys, então você teria que escrever `<Fragment>` explicitamente:
1219
-
=======
1220
-
Alternatively, you could render a collection of Fragments which contain `<hr />` and `<p>...</p>`. However, the `<>...</>` shorthand syntax doesn't support passing keys, so you'd have to write `<Fragment>` explicitly:
1221
-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
1209
+
Alternativamente, você pode renderizar uma coleção de fragmentos que contém `<hr />` e `<p>...</p>`. No entanto, a sintaxe abreviada `<>...</>` não suporta a passagem de chaves, então você teria que escrever `<Fragment>` explicitamente:
1222
1210
1223
1211
<Sandpack>
1224
1212
@@ -1264,11 +1252,7 @@ hr {
1264
1252
1265
1253
</Sandpack>
1266
1254
1267
-
<<<<<<< HEAD
1268
-
Lembre-se, fragmentos (comumente escritos como `<> </>`) deixam com que você agrupe nós JSX sem adicionar `<div>`s extras!
1269
-
=======
1270
-
Remember, Fragments (often written as `<> </>`) let you group JSX nodes without adding extra `<div>`s!
1271
-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
1255
+
Lembre-se, Fragmentos (geralmente escritos como `<> </>`) permitem agrupar nós JSX sem adicionar `<div>`s extras!
0 commit comments