Skip to content

Commit 97cdba1

Browse files
authored
Merge pull request #864 from xxtereshko/react-dom-apis
Translation for "React DOM APIs"
2 parents 59eec49 + ae676df commit 97cdba1

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed
Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,42 @@
11
---
2-
title: React DOM APIs
2+
title: API React DOM
33
---
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+
Пакет `react-dom` содержит методы, которые поддерживаются только для веб-приложений (которые работают в DOM среде браузера). Они не поддерживаются для 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+
Эти API могут быть импортированы из ваших компонентов. Они используются редко:
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) позволяет рендерить дочерние компоненты в другой части DOM-дерева.
18+
* [`flushSync`](/reference/react-dom/flushSync) позволяет принудительно вынудить React обновить состояние и синхронно обновить DOM.
1919

2020
---
2121

22-
## Entry points {/*entry-points*/}
22+
## Точки входа {/*entry-points*/}
2323

24-
The `react-dom` package provides two additional entry points:
24+
Пакет `react-dom` предоставляет две дополнительные точки входа:
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) содержит API для рендеринга компонентов React на стороне клиента (в браузере).
27+
* [`react-dom/server`](/reference/react-dom/server) содержит API для рендеринга компонентов React на сервере.
2828

2929
---
3030

31-
## Deprecated APIs {/*deprecated-apis*/}
31+
## Устаревшие API {/*deprecated-apis*/}
3232

3333
<Deprecated>
3434

35-
These APIs will be removed in a future major version of React.
35+
Эти API будут удалены в одной из следующих версий 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)
43-
39+
* [`findDOMNode`](/reference/react-dom/findDOMNode) находит ближайший DOM-узел, соответствующий экземпляру классового компонента.
40+
* [`hydrate`](/reference/react-dom/hydrate) монтирует дерево в DOM, созданное из HTML на сервере. Устарел в пользу [`hydrateRoot`](/reference/react-dom/client/hydrateRoot).
41+
* [`render`](/reference/react-dom/render) монтирует дерево в DOM. Устарел в пользу [`createRoot`](/reference/react-dom/client/createRoot).
42+
* [`unmountComponentAtNode`](/reference/react-dom/unmountComponentAtNode) размонтирует дерево из DOM. Устарел в пользу [`root.unmount()`](/reference/react-dom/client/createRoot#root-unmount).

0 commit comments

Comments
 (0)