-
Notifications
You must be signed in to change notification settings - Fork 303
Traducción de "react-dom/server" #713
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 2 commits
Commits
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,49 +1,49 @@ | ||
| --- | ||
| title: Server React DOM APIs | ||
| title: APIs del servidor de React DOM | ||
| --- | ||
|
|
||
| <Intro> | ||
|
|
||
| The `react-dom/server` APIs let you render React components to HTML on the server. These APIs are only used on the server at the top level of your app to generate the initial HTML. A [framework](/learn/start-a-new-react-project#production-grade-react-frameworks) may call them for you. Most of your components don't need to import or use them. | ||
| Las APIs del `react-dom/server` te permiten renderizar componentes de React a HTML en el servidor. Estas API solo se usan en el servidor en el nivel superior de su aplicación para generar el HTML inicial. Un [framework](/learn/start-a-new-react-project#production-grade-react-frameworks) puede llamarlos por ti. La mayoría de tus componentes no necesitan importarlos o usarlos. | ||
|
|
||
| </Intro> | ||
|
|
||
| --- | ||
|
|
||
| ## Server APIs for Node.js Streams {/*server-apis-for-nodejs-streams*/} | ||
| ## APIs del servidor para transmisiones (streams) de Node.js {/*server-apis-for-nodejs-streams*/} | ||
|
|
||
| These methods are only available in the environments with [Node.js Streams:](https://nodejs.org/api/stream.html) | ||
| Estos métodos solo están disponibles en los entornos con [Node.js Streams:](https://nodejs.org/api/stream.html) | ||
|
|
||
| * [`renderToPipeableStream`](/reference/react-dom/server/renderToPipeableStream) renders a React tree to a pipeable [Node.js Stream.](https://nodejs.org/api/stream.html) | ||
| * [`renderToStaticNodeStream`](/reference/react-dom/server/renderToStaticNodeStream) renders a non-interactive React tree to a [Node.js Readable Stream.](https://nodejs.org/api/stream.html#readable-streams) | ||
| * [`renderToPipeableStream`](/reference/react-dom/server/renderToPipeableStream) renderiza un árbol de React a un [Node.js Stream.](https://nodejs.org/api/stream.html) | ||
| * [`renderToStaticNodeStream`](/reference/react-dom/server/renderToStaticNodeStream) renderiza un árbol de React no interactivo a un [Node.js Readable Stream.](https://nodejs.org/api/stream.html#readable-streams) | ||
|
|
||
| --- | ||
|
|
||
| ## Server APIs for Web Streams {/*server-apis-for-web-streams*/} | ||
| ## APIs del servidor para Web Streams {/*server-apis-for-web-streams*/} | ||
|
|
||
| These methods are only available in the environments with [Web Streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API), which includes browsers, Deno, and some modern edge runtimes: | ||
| Estos métodos solo están disponibles en los entornos con [Web Streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API), que incluye navegadores, Deno y algunos entornos de ejecución modernos: | ||
|
|
||
| * [`renderToReadableStream`](/reference/react-dom/server/renderToReadableStream) renders a React tree to a [Readable Web Stream.](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) | ||
| * [`renderToReadableStream`](/reference/react-dom/server/renderToReadableStream) renderiza un árbol de React a un [Readable Web Stream.](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) | ||
|
|
||
| --- | ||
|
|
||
| ## Server APIs for non-streaming environments {/*server-apis-for-non-streaming-environments*/} | ||
| ## APIs del servidor para entornos sin *streaming* {/*server-apis-for-non-streaming-environments*/} | ||
|
|
||
| These methods can be used in the environments that don't support streams: | ||
| Estos métodos se pueden usar en los entornos que no admiten *streams*: | ||
|
|
||
| * [`renderToString`](/reference/react-dom/server/renderToString) renders a React tree to a string. | ||
| * [`renderToStaticMarkup`](/reference/react-dom/server/renderToStaticMarkup) renders a non-interactive React tree to a string. | ||
| * [`renderToString`](/reference/react-dom/server/renderToString) renderiza un árbol de React a una cadena. | ||
|
mateoguzmana marked this conversation as resolved.
Outdated
|
||
| * [`renderToStaticMarkup`](/reference/react-dom/server/renderToStaticMarkup) renderiza un árbol de React no interactivo a una cadena. | ||
|
mateoguzmana marked this conversation as resolved.
Outdated
|
||
|
|
||
| They have limited functionality compared to the streaming APIs. | ||
| Tienen funcionalidad limitada en comparación con las APIs de *streaming*. | ||
|
|
||
| --- | ||
|
|
||
| ## Deprecated server APIs {/*deprecated-server-apis*/} | ||
| ## APIs del servidor obsoletas {/*deprecated-server-apis*/} | ||
|
|
||
| <Deprecated> | ||
|
|
||
| These APIs will be removed in a future major version of React. | ||
| Estas APIs se eliminarán en una versión principal futura de React. | ||
|
|
||
| </Deprecated> | ||
|
|
||
| * [`renderToNodeStream`](/reference/react-dom/server/renderToNodeStream) renders a React tree to a [Node.js Readable stream.](https://nodejs.org/api/stream.html#readable-streams) (Deprecated.) | ||
| * [`renderToNodeStream`](/reference/react-dom/server/renderToNodeStream) renderiza un árbol de React a un [Node.js Readable stream.](https://nodejs.org/api/stream.html#readable-streams) (Obsoleto.) | ||
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.
Uh oh!
There was an error while loading. Please reload this page.