-
Notifications
You must be signed in to change notification settings - Fork 300
Adding translation to react-dom: APIs #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
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8975f42
Adding translation to react-dom: APIs
s0alken a6cf3a6
updated translation
s0alken cc468e1
Merge branch 'main' into react-dom-apis-translation
s0alken eeaf421
Update src/content/reference/react-dom/index.md
s0alken 44a554f
Merge branch 'main' into react-dom-apis-translation
carburo 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
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 | ||||
---|---|---|---|---|---|---|
|
@@ -4,40 +4,40 @@ title: React DOM APIs | |||||
|
||||||
<Intro> | ||||||
|
||||||
The `react-dom` package contains methods that are only supported for the web applications (which run in the browser DOM environment). They are not supported for React Native. | ||||||
El paquete `react-dom` incluye métodos que sólo son compatibles con aplicaciones web (aquellas que se ejecutan en el entorno del DOM del navegador). No son compatibles con React Native. | ||||||
|
||||||
</Intro> | ||||||
|
||||||
--- | ||||||
|
||||||
## APIs {/*apis*/} | ||||||
|
||||||
These APIs can be imported from your components. They are rarely used: | ||||||
Puedes importar las siguientes APIs en tus componentes, pero su uso es poco común: | ||||||
|
||||||
* [`createPortal`](/reference/react-dom/createPortal) lets you render child components in a different part of the DOM tree. | ||||||
* [`flushSync`](/reference/react-dom/flushSync) lets you force React to flush a state update and update the DOM synchronously. | ||||||
* [`createPortal`](/reference/react-dom/createPortal) permite renderizar componentes hijos en una parte diferente del árbol del DOM. | ||||||
* [`flushSync`](/reference/react-dom/flushSync) permite forzar a React a actualizar el estado y el DOM de manera síncrona. | ||||||
|
||||||
--- | ||||||
|
||||||
## Entry points {/*entry-points*/} | ||||||
## Puntos de entrada {/*entry-points*/} | ||||||
|
||||||
The `react-dom` package provides two additional entry points: | ||||||
El paquete `react-dom` proporciona dos puntos de entrada adicionales: | ||||||
|
||||||
* [`react-dom/client`](/reference/react-dom/client) contains APIs to render React components on the client (in the browser). | ||||||
* [`react-dom/server`](/reference/react-dom/server) contains APIs to render React components on the server. | ||||||
* [`react-dom/client`](/reference/react-dom/client) incluye APIs para renderizar componentes de React en el cliente, es decir, en el navegador. | ||||||
* [`react-dom/server`](/reference/react-dom/server) incluye APIs para renderizar componentes de react en el servidor. | ||||||
|
||||||
--- | ||||||
|
||||||
## Deprecated APIs {/*deprecated-apis*/} | ||||||
## APIs obsoletas {/*deprecated-apis*/} | ||||||
|
||||||
<Deprecated> | ||||||
|
||||||
These APIs will be removed in a future major version of React. | ||||||
Las siguientes APIs se eliminarán en las próximas versiones importantes de React. | ||||||
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. Para mantener la consistencia en todas las páginas estamos utilizando la terminología mayor.menor.parche.
Suggested change
|
||||||
|
||||||
</Deprecated> | ||||||
|
||||||
* [`findDOMNode`](/reference/react-dom/findDOMNode) finds the closest DOM node corresponding to a class component instance. | ||||||
* [`hydrate`](/reference/react-dom/hydrate) mounts a tree into the DOM created from server HTML. Deprecated in favor of [`hydrateRoot`](/reference/react-dom/client/hydrateRoot). | ||||||
* [`render`](/reference/react-dom/render) mounts a tree into the DOM. Deprecated in favor of [`createRoot`](/reference/react-dom/client/createRoot). | ||||||
* [`unmountComponentAtNode`](/reference/react-dom/unmountComponentAtNode) unmounts a tree from the DOM. Deprecated in favor of [`root.unmount()`.](/reference/react-dom/client/createRoot#root-unmount) | ||||||
* [`findDOMNode`](/reference/react-dom/findDOMNode) busca el nodo de DOM más cercano correspondiente a una instancia de componente de clase. | ||||||
* [`hydrate`](/reference/react-dom/hydrate) monta un árbol en el DOM creado a partir de HTML generado en el servidor. En su lugar, se recomienda usar [`hydrateRoot`](/reference/react-dom/client/hydrateRoot). | ||||||
* [`render`](/reference/react-dom/render) monta un árbol en el DOM. En su lugar, se recomienda usar [`createRoot`](/reference/react-dom/client/createRoot). | ||||||
* [`unmountComponentAtNode`](/reference/react-dom/unmountComponentAtNode) desmonta un árbol del DOM. En su lugar, se recomienda usar [`root.unmount()`.](/reference/react-dom/client/createRoot#root-unmount) | ||||||
|
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.
Por favor, ¿podrías revertir este cambio?
La recomendación del equipo de React es no traducir elementos de la UI de momento para evitar conflictos en el futuro: