Skip to content

translate escape-hatches.md to pt-BR #664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Apr 27, 2023
Merged

translate escape-hatches.md to pt-BR #664

merged 11 commits into from
Apr 27, 2023

Conversation

jotaRenan
Copy link
Contributor

@jotaRenan
Copy link
Contributor Author

jotaRenan commented Apr 25, 2023

acabei de perceber que nao traduzi os comentários dentro dos code snippets. Vou fazer isso, mas já podem ir revisando o restante da PR conforme quiserem

edit: done

@jhonmike jhonmike added needs +1 Needs another approval before merging needs review A pull request ready to be reviewed and removed needs +1 Needs another approval before merging labels Apr 27, 2023
* [How to prevent some values from re-triggering Effects](/learn/separating-events-from-effects)
* [How to make your Effect re-run less often](/learn/removing-effect-dependencies)
* [How to share logic between components](/learn/reusing-logic-with-custom-hooks)
* [Como "guardar" informação sem rerrenderizar](/learn/referencing-values-with-refs)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* [Como "guardar" informação sem rerrenderizar](/learn/referencing-values-with-refs)
* [Como "guardar" informação sem re-renderizar](/learn/referencing-values-with-refs)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

De acordo com o acordo ortográfico de 2009, entendo que rerrenderização é a forma correta

Copy link
Contributor

Choose a reason for hiding this comment

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

Essa regra ainda se aplica atualmente? Pergunto pois em alguns lugares vi com o uso do hífen como sugeri, mas se ainda se aplica show 🚀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sim, creio que não está sendo usado porque é uma mudança "recente" da língua. Mas seguindo a norma culta, é o correto


```js
const ref = useRef(0);
```

Like state, refs are retained by React between re-renders. However, setting state re-renders a component. Changing a ref does not! You can access the current value of that ref through the `ref.current` property.
Assim como estado, refs são retidas pelo React entre rerrenderizações. Entretanto, definir estado rerrenderiza um componente. Mudar uma ref, não! Você pode acessar o valor atual de uma ref através da propriedade `ref.current`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Assim como estado, refs são retidas pelo React entre rerrenderizações. Entretanto, definir estado rerrenderiza um componente. Mudar uma ref, não! Você pode acessar o valor atual de uma ref através da propriedade `ref.current`.
Assim como estado, refs são retidas pelo React entre re-renderizações. Entretanto, definir estado re-renderiza um componente. Mudar uma ref, não! Você pode acessar o valor atual de uma ref através da propriedade `ref.current`.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

De acordo com o acordo ortográfico de 2009, entendo que rerrenderização é a forma correta


Effects têm um ciclo de vida diferente dos componentes. Componentes podem se montar, atualizar ou desmontar. Um Effect só pode fazer duas coisas: começar a sincronizar algo e, mais tarde, parar a sincronização. Esse ciclo pode acontecer múltiplas vezes se seu Effect depender de props e estado que possa mudar ao longo do tempo.

Este Effect depende do valor da prop `roomId`. Props são *valores reativos*, o que significa que podem mudar em uma rerenderização. Note que um Effect *ressincroniza* (e reconecta ao servidor) caso `roomId` seja alterado:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Este Effect depende do valor da prop `roomId`. Props são *valores reativos*, o que significa que podem mudar em uma rerenderização. Note que um Effect *ressincroniza* (e reconecta ao servidor) caso `roomId` seja alterado:
Este Effect depende do valor da prop `roomId`. Props são *valores reativos*, o que significa que podem mudar em uma re-renderização. Note que um Effect *ressincroniza* (e reconecta ao servidor) caso `roomId` seja alterado:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

De acordo com o acordo ortográfico de 2009, entendo que rerrenderização é a forma correta

Vou adicionar o R que faltou


All code inside Effects is *reactive.* It will run again if some reactive value it reads has changed due to a re-render. For example, this Effect will re-connect to the chat if either `roomId` or `theme` have changed:
Todo código dentro de Effects é *reativo*. Ele será executado novamente se algum valor reativo lido por ele se alterar por causa de uma rerenderização. Por exemplo, esse Effect irá reconectar ao chat se `roomId` ou `theme` tiverem mudado.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Todo código dentro de Effects é *reativo*. Ele será executado novamente se algum valor reativo lido por ele se alterar por causa de uma rerenderização. Por exemplo, esse Effect irá reconectar ao chat se `roomId` ou `theme` tiverem mudado.
Todo código dentro de Effects é *reativo*. Ele será executado novamente se algum valor reativo lido por ele se alterar por causa de uma re-renderização. Por exemplo, esse Effect irá reconectar ao chat se `roomId` ou `theme` tiverem mudado.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

De acordo com o acordo ortográfico de 2009, entendo que rerrenderização é a forma correta

Vou adicionar o R que faltou

@github-actions
Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@github-actions
Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

1 similar comment
@github-actions
Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@github-actions
Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@jotaRenan jotaRenan requested a review from buirkan April 27, 2023 18:39
@jotaRenan
Copy link
Contributor Author

Obrigado pela review, @buirkan.

@felipefreitag
Copy link
Contributor

Encontrei pequenos detalhes de ortografia, o resto me parece todo ok! 👍

Co-authored-by: Felipe Freitag Vargas <[email protected]>
jotaRenan and others added 3 commits April 27, 2023 16:46
@github-actions
Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

2 similar comments
@github-actions
Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@github-actions
Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@jotaRenan
Copy link
Contributor Author

jotaRenan commented Apr 27, 2023

Obrigado pela review, @felipefreitag. São pontos que passam fácil depois de traduzir um textão desses haha. Vou abrir PR de outra página daqui uns dias e vou me surpreender se nao cometer ao menos algum deles lá tambem 👩‍🦳

@jotaRenan jotaRenan requested a review from felipefreitag April 27, 2023 19:49
@github-actions
Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@jhonmike jhonmike added 🌐 translated Translation is completed for this page and removed needs review A pull request ready to be reviewed labels Apr 27, 2023
@jhonmike jhonmike merged commit 479d5f3 into reactjs:main Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌐 translated Translation is completed for this page
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants