-
Notifications
You must be signed in to change notification settings - Fork 316
docs(pt-br): translate react-apis and createContext page #667
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
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2cdb0be
docs(pt-br): translate react-apis and createContext page
devlulcas d04710c
docs: add the original term "props" for better understanding
devlulcas 63058a9
docs: replaces "uma" for "pela"
devlulcas 9ba5349
fix(typo): capitalization after period
devlulcas c2d0595
fix(typo): replaces wrong word
devlulcas 2631173
fix: put the article outside the CodeStep tag
devlulcas 550194f
fix: adds a piece of the original translation that was removed
devlulcas 141f62d
fix: incorrect verb conjugation
devlulcas e7f1ac3
fix: reinsert original line break
devlulcas b8bee90
Merge branch 'reactjs:main' into main
devlulcas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
--- | ||
title: "Built-in React APIs" | ||
title: "APIs React Integradas" | ||
--- | ||
|
||
<Intro> | ||
|
||
In addition to [Hooks](/reference/react) and [Components](/reference/react/components), the `react` package exports a few other APIs that are useful for defining components. This page lists all the remaining modern React APIs. | ||
Em adição aos [Hooks](/reference/react) e [Componentes](/reference/react/components), o pacote `react` exporta algumas outras APIs que são úteis para definir componentes. Essa página lista todas as APIs modernas restantes do React. | ||
|
||
</Intro> | ||
|
||
--- | ||
|
||
* [`createContext`](/reference/react/createContext) lets you define and provide context to the child components. Used with [`useContext`.](/reference/react/useContext) | ||
* [`forwardRef`](/reference/react/forwardRef) lets your component expose a DOM node as a ref to the parent. Used with [`useRef`.](/reference/react/useRef) | ||
* [`lazy`](/reference/react/lazy) lets you defer loading a component's code until it's rendered for the first time. | ||
* [`memo`](/reference/react/memo) lets your component skip re-renders with same props. Used with [`useMemo`](/reference/react/useMemo) and [`useCallback`.](/reference/react/useCallback) | ||
* [`startTransition`](/reference/react/startTransition) lets you mark a state update as non-urgent. Similar to [`useTransition`.](/reference/react/useTransition) | ||
* [`createContext`](/reference/react/createContext) permite que você defina e forneça contexto aos componentes filhos. Utilizado com [`useContext`.](/reference/react/useContext) | ||
* [`forwardRef`](/reference/react/forwardRef) permite que seu componente exponha um nó do DOM como uma referência para o pai. Utilizado com [`useRef`.](/reference/react/useRef) | ||
* [`lazy`](/reference/react/lazy) permite adiar o carregamento do código de um componente até que ele seja renderizado pela primeira vez. | ||
* [`memo`](/reference/react/memo) permite que seu componente evite re-renderizações se as propriedades (`props`) forem as mesmas. Utilizado com [`useMemo`](/reference/react/useMemo) e [`useCallback`.](/reference/react/useCallback) | ||
* [`startTransition`](/reference/react/startTransition) permite marcar uma atualização de estado como não urgente. Semelhante a [`useTransition`.](/reference/react/useTransition) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
não sei se gosto da tradução literal pra "contexto", porque
permite que você defina e forneça contexto aos componentes filhos
fica subjetivo, não faz o mesmo sentido.talvez devemos tentar algo como: permite que você defina e forneça propriedades através de um
context
aos componentes filhos. Utilizado com [useContext
.]ficaria mais descritivo e traria mais proximidade ao significado inicial, sem perder a proximidade com o português
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.
oi @lirbre . Essa discussão vai ser bem relevante e acho que terá diversas opiniões: no texto original, não usam Context em maiúsculo, portanto não parecem estar usando como nome próprio e sim como a palavra em seu significado comum. Nesse sentido, faria sentido traduzir...
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.
Concordo com o @jotaRenan. Nessa parte eu entendi o uso de "context" com o sentido mais para o lado do contexto de uma conversa
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.
Agora estou considerando melhor a ideia do @lirbre. Talvez realmente seja uma boa adicionar mais informação.
O que acham?
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.
A fim de manter a tradução mais próxima do texto original, respeitosamente mantenho minha opinião
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.
eu gostei do jeito que esta 🤔, acho que da para entender!! oq acham podemos seguir?
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.
compreendo, excelentes pontos! acho que podemos seguir sim.