Skip to content

Conversation

@NivaldoFarias
Copy link
Contributor

This pull request contains a translation of the referenced page into Portuguese (pt-BR). The translation was generated using OpenAI (model gpt-4o-mini).

Refer to the source repository workflow that generated this translation for more details.

Feel free to review and suggest any improvements to the translation.

@vercel
Copy link

vercel bot commented Jan 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
pt-br-legacy-reactjs-org ⬜️ Ignored (Inspect) Visit Preview Mar 12, 2025 1:44pm

Comment on lines +908 to +910
</DiagramGroup>

<DiagramGroup>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
</DiagramGroup>
<DiagramGroup>

Comment on lines +918 to +920
</DiagramGroup>

<DiagramGroup>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
</DiagramGroup>
<DiagramGroup>

Funciona quase, mas há um bug. Se você preencher a entrada "Primeiro nome" e marcar a caixa de seleção, o texto ficará na primeira entrada (que agora é "Sobrenome"). Corrija para que o texto da entrada *também* se mova quando você inverter a ordem.
<Hint>
<Dica>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Dica>
<Hint>

Parece que, para esses campos, a posição deles dentro do pai não é suficiente. Existe alguma maneira de dizer ao React como combinar o estado entre renderizações?
</Hint>
</Dica>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
</Dica>
</Hint>

Quando você pressiona "Próximo", o navegador começa a carregar a próxima imagem. No entanto, como ela é exibida na mesma tag `<img>`, por padrão, você ainda verá a imagem anterior até a próxima ser carregada. Isso pode ser indesejável se for importante que o texto sempre corresponda à imagem. Mude para que, no momento em que você pressionar "Próximo", a imagem anterior seja imediatamente limpa.
<Hint>
<Dica>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Dica>
<Hint>

Há alguma maneira de dizer ao React para recriar o DOM em vez de reutilizá-lo?
</Hint>
</Dica>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
</Dica>
</Hint>

O estado está associado à posição da árvore. Uma `key` permite que você especifique uma posição nomeada em vez de depender da ordem.
</Challenges>
</Solution>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
</Solution>
</Solution>
</Challenges>

@NivaldoFarias NivaldoFarias deleted the translate/preserving-and-resetting-state.md branch October 7, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants