-
Notifications
You must be signed in to change notification settings - Fork 310
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
traduzindo a parte de definição e referencia #772
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -5,7 +5,7 @@ title: <StrictMode> | |||||
|
||||||
<Intro> | ||||||
|
||||||
`<StrictMode>` lets you find common bugs in your components early during development. | ||||||
`<StrictMode>` permite que você encontre bugs comuns em seus componentes no início de desenvolvimento. | ||||||
|
||||||
|
||||||
```js | ||||||
|
@@ -20,11 +20,11 @@ title: <StrictMode> | |||||
|
||||||
--- | ||||||
|
||||||
## Reference {/*reference*/} | ||||||
## Referência {/*reference*/} | ||||||
|
||||||
### `<StrictMode>` {/*strictmode*/} | ||||||
|
||||||
Use `StrictMode` to enable additional development behaviors and warnings for the component tree inside: | ||||||
Use `StrictMode` para habilitar comportamentos e avisos adicionais de desenvolvimento para o componente da árvore de dentro: | ||||||
|
||||||
```js | ||||||
import { StrictMode } from 'react'; | ||||||
|
@@ -38,17 +38,17 @@ root.render( | |||||
); | ||||||
``` | ||||||
|
||||||
[See more examples below.](#usage) | ||||||
[Veja mais exemplos abaixo.](#usage) | ||||||
|
||||||
Strict Mode enables the following development-only behaviors: | ||||||
Strict Mode habilita o seguimento de comportamentos somente de desenvolvimento: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
- Your components will [re-render an extra time](#fixing-bugs-found-by-double-rendering-in-development) to find bugs caused by impure rendering. | ||||||
- Your components will [re-run Effects an extra time](#fixing-bugs-found-by-re-running-effects-in-development) to find bugs caused by missing Effect cleanup. | ||||||
- Your components will [be checked for usage of deprecated APIs.](#fixing-deprecation-warnings-enabled-by-strict-mode) | ||||||
- Seus componentes vão [renderizar novamente um tempo extra](#fixing-bugs-found-by-double-rendering-in-development) para encontrar bugs causados por renderizações impuras. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
- Seus componentes vão [executar efeitos novamente em um tempo extra](#fixing-bugs-found-by-re-running-effects-in-development) para encontrar bugs causados por falta de limpeza de efeito. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
- Seus componentes vão [ser checados pelo uso de APIs descontinuadas.](#fixing-deprecation-warnings-enabled-by-strict-mode) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
#### Props {/*props*/} | ||||||
|
||||||
`StrictMode` accepts no props. | ||||||
`StrictMode` não aceita props. | ||||||
|
||||||
#### Caveats {/*caveats*/} | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.