Skip to content

Commit 94c692d

Browse files
s0alkencarburo
andauthored
Adding translation to react-dom: APIs (#664)
* Adding translation to react-dom: APIs * updated translation * Update src/content/reference/react-dom/index.md --------- Co-authored-by: Rainer Martinez <[email protected]>
1 parent 8a8c876 commit 94c692d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/content/reference/react-dom/index.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,40 @@ title: React DOM APIs
44

55
<Intro>
66

7-
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.
7+
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.
88

99
</Intro>
1010

1111
---
1212

1313
## APIs {/*apis*/}
1414

15-
These APIs can be imported from your components. They are rarely used:
15+
Puedes importar las siguientes APIs en tus componentes, pero su uso es poco común:
1616

17-
* [`createPortal`](/reference/react-dom/createPortal) lets you render child components in a different part of the DOM tree.
18-
* [`flushSync`](/reference/react-dom/flushSync) lets you force React to flush a state update and update the DOM synchronously.
17+
* [`createPortal`](/reference/react-dom/createPortal) permite renderizar componentes hijos en una parte diferente del árbol del DOM.
18+
* [`flushSync`](/reference/react-dom/flushSync) permite forzar a React a actualizar el estado y el DOM de manera síncrona.
1919

2020
---
2121

22-
## Entry points {/*entry-points*/}
22+
## Puntos de entrada {/*entry-points*/}
2323

24-
The `react-dom` package provides two additional entry points:
24+
El paquete `react-dom` proporciona dos puntos de entrada adicionales:
2525

26-
* [`react-dom/client`](/reference/react-dom/client) contains APIs to render React components on the client (in the browser).
27-
* [`react-dom/server`](/reference/react-dom/server) contains APIs to render React components on the server.
26+
* [`react-dom/client`](/reference/react-dom/client) incluye APIs para renderizar componentes de React en el cliente, es decir, en el navegador.
27+
* [`react-dom/server`](/reference/react-dom/server) incluye APIs para renderizar componentes de react en el servidor.
2828

2929
---
3030

31-
## Deprecated APIs {/*deprecated-apis*/}
31+
## APIs obsoletas {/*deprecated-apis*/}
3232

3333
<Deprecated>
3434

35-
These APIs will be removed in a future major version of React.
35+
Las siguientes APIs se eliminarán en una próxima versión mayor de React.
3636

3737
</Deprecated>
3838

39-
* [`findDOMNode`](/reference/react-dom/findDOMNode) finds the closest DOM node corresponding to a class component instance.
40-
* [`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).
41-
* [`render`](/reference/react-dom/render) mounts a tree into the DOM. Deprecated in favor of [`createRoot`](/reference/react-dom/client/createRoot).
42-
* [`unmountComponentAtNode`](/reference/react-dom/unmountComponentAtNode) unmounts a tree from the DOM. Deprecated in favor of [`root.unmount()`.](/reference/react-dom/client/createRoot#root-unmount)
39+
* [`findDOMNode`](/reference/react-dom/findDOMNode) busca el nodo de DOM más cercano correspondiente a una instancia de componente de clase.
40+
* [`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).
41+
* [`render`](/reference/react-dom/render) monta un árbol en el DOM. En su lugar, se recomienda usar [`createRoot`](/reference/react-dom/client/createRoot).
42+
* [`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)
4343

0 commit comments

Comments
 (0)