`:
+Neste exemplo, ao marcar a caixa de seleção, você substituirá ` `:
See you later! Até mais!{score}
Hint: Your favorite city?
+Dica: Sua cidade favorita?
+ }}>Esconder dicaHint: Your favorite city?
+Dica: Sua cidade favorita?
} {showHint ? ( + }}>Esconder dica ) : ( + }}>Mostrar dica )}Hint: Your favorite city?
+Dica: Sua cidade favorita?
+ }}>Esconder dica
@@ -1887,25 +1895,25 @@ export default function Gallery() {
}
let images = [{
- place: 'Penang, Malaysia',
+ place: 'Penang, Malásia',
src: 'https://i.imgur.com/FJeJR8M.jpg'
}, {
- place: 'Lisbon, Portugal',
+ place: 'Lisboa, Portugal',
src: 'https://i.imgur.com/dB2LRbj.jpg'
}, {
- place: 'Bilbao, Spain',
+ place: 'Bilbao, Espanha',
src: 'https://i.imgur.com/z08o2TS.jpg'
}, {
place: 'Valparaíso, Chile',
src: 'https://i.imgur.com/Y3utgTi.jpg'
}, {
- place: 'Schwyz, Switzerland',
+ place: 'Schwyz, Suíça',
src: 'https://i.imgur.com/JBbMpWY.jpg'
}, {
- place: 'Prague, Czechia',
+ place: 'Praga, República Checa',
src: 'https://i.imgur.com/QwUKKmF.jpg'
}, {
- place: 'Ljubljana, Slovenia',
+ place: 'Liubliana, Eslovênia',
src: 'https://i.imgur.com/3aIiwfm.jpg'
}];
```
@@ -1918,7 +1926,7 @@ img { width: 150px; height: 150px; }
@@ -1955,25 +1963,25 @@ export default function Gallery() {
}
let images = [{
- place: 'Penang, Malaysia',
+ place: 'Penang, Malásia',
src: 'https://i.imgur.com/FJeJR8M.jpg'
}, {
- place: 'Lisbon, Portugal',
+ place: 'Lisboa, Portugal',
src: 'https://i.imgur.com/dB2LRbj.jpg'
}, {
- place: 'Bilbao, Spain',
+ place: 'Bilbao, Espanha',
src: 'https://i.imgur.com/z08o2TS.jpg'
}, {
place: 'Valparaíso, Chile',
src: 'https://i.imgur.com/Y3utgTi.jpg'
}, {
- place: 'Schwyz, Switzerland',
+ place: 'Schwyz, Suíça',
src: 'https://i.imgur.com/JBbMpWY.jpg'
}, {
- place: 'Prague, Czechia',
+ place: 'Praga, República Checa',
src: 'https://i.imgur.com/QwUKKmF.jpg'
}, {
- place: 'Ljubljana, Slovenia',
+ place: 'Liubliana, Eslovênia',
src: 'https://i.imgur.com/3aIiwfm.jpg'
}];
```
@@ -1986,11 +1994,11 @@ img { width: 150px; height: 150px; }
` tag. When that `key` changes, React will re-create the `
` DOM node from scratch. This causes a brief flash when each image loads, so it's not something you'd want to do for every image in your app. But it makes sense if you want to ensure the image always matches the text.
+Você pode fornecer uma `key` para a tag `
`. Quando essa `key` muda, o React recriará o nó DOM `
` do zero. Isso causa um breve flash quando cada imagem carrega, então não é algo que você gostaria de fazer para cada imagem em seu aplicativo. Mas faz sentido se você quiser garantir que a imagem sempre corresponda ao texto.
- Image {index + 1} of {images.length}
+ Imagem {index + 1} de {images.length}
{displayedContacts.map((contact, i) =>
@@ -2050,7 +2058,7 @@ export default function Contact({ contact }) {
>
);
@@ -2080,16 +2088,16 @@ button {
{displayedContacts.map(contact =>
@@ -2149,7 +2157,7 @@ export default function Contact({ contact }) {
>
);
@@ -2177,8 +2185,6 @@ button {