diff --git a/src/content/reference/react-dom/static/index.md b/src/content/reference/react-dom/static/index.md index 988ec85dc6..9ae7985cdb 100644 --- a/src/content/reference/react-dom/static/index.md +++ b/src/content/reference/react-dom/static/index.md @@ -1,28 +1,25 @@ --- -title: Static React DOM APIs +title: Статические API React DOM --- - -The `react-dom/static` APIs let you generate static HTML for React components. They have limited functionality compared to the streaming APIs. 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. +API `react-dom/static` позволяют генерировать статический HTML для React-компонентов. Их функциональность ограничена по сравнению со стриминговыми API. [Фреймворк](/learn/start-a-new-react-project#production-grade-react-frameworks) может вызывать их за вас. Большинству ваших компонентов не нужно их импортировать или использовать. --- -## Static APIs for Web Streams {/*static-apis-for-web-streams*/} +## Статические API для Web Streams {/*static-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: +Эти методы доступны только в средах с [Web Streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API), включая браузеры, Deno и некоторые современные среды выполнения на периферии: -* [`prerender`](/reference/react-dom/static/prerender) renders a React tree to static HTML with a [Readable Web Stream.](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) +* [`prerender`](/reference/react-dom/static/prerender) рендерит React-дерево в статический HTML с помощью [Readable Web Stream.](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) --- -## Static APIs for Node.js Streams {/*static-apis-for-nodejs-streams*/} - -These methods are only available in the environments with [Node.js Streams](https://nodejs.org/api/stream.html): - -* [`prerenderToNodeStream`](/reference/react-dom/static/prerenderToNodeStream) renders a React tree to static HTML with a [Node.js Stream.](https://nodejs.org/api/stream.html) +## Статические API для Node.js Streams {/*static-apis-for-nodejs-streams*/} +Эти методы доступны только в средах с [Node.js Streams](https://nodejs.org/api/stream.html): +* [`prerenderToNodeStream`](/reference/react-dom/static/prerenderToNodeStream) рендерит React-дерево в статический HTML с помощью [Node.js Stream.](https://nodejs.org/api/stream.html) \ No newline at end of file