Skip to content

Commit ef355c0

Browse files
committed
Delete removed APIs from 19 docs
1 parent 285db2b commit ef355c0

18 files changed

+75
-1510
lines changed

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

-435
This file was deleted.

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

-201
This file was deleted.

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

+8-11
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,13 @@ The `react-dom` package provides two additional entry points:
4141

4242
---
4343

44-
## Deprecated APIs {/*deprecated-apis*/}
44+
## Removed APIs {/*removed-apis*/}
4545

46-
<Deprecated>
47-
48-
These APIs will be removed in a future major version of React.
49-
50-
</Deprecated>
51-
52-
* [`findDOMNode`](/reference/react-dom/findDOMNode) finds the closest DOM node corresponding to a class component instance.
53-
* [`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).
54-
* [`render`](/reference/react-dom/render) mounts a tree into the DOM. Deprecated in favor of [`createRoot`](/reference/react-dom/client/createRoot).
55-
* [`unmountComponentAtNode`](/reference/react-dom/unmountComponentAtNode) unmounts a tree from the DOM. Deprecated in favor of [`root.unmount()`](/reference/react-dom/client/createRoot#root-unmount).
46+
These APIs were removed in React 19:
5647

48+
* [`findDOMNode`](https://18.react.dev/reference/react-dom/findDOMNode): see [alternatives](https://18.react.dev/reference/react-dom/findDOMNode#alternatives).
49+
* [`hydrate`](https://18.react.dev/reference/react-dom/hydrate): use [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) instead.
50+
* [`render`](https://18.react.dev/reference/react-dom/render): use [`createRoot`](/reference/react-dom/client/createRoot) instead.
51+
* [`unmountComponentAtNode`](/reference/react-dom/unmountComponentAtNode): use [`root.unmount()`](/reference/react-dom/client/createRoot#root-unmount) instead.
52+
* [`renderToNodeStream`](https://18.react.dev/reference/react-dom/server/renderToNodeStream): use [`react-dom/server`](/reference/react-dom/server) APIs instead.
53+
* [`renderToStaticNodeStream`](https://18.react.dev/reference/react-dom/server/renderToStaticNodeStream): use [`react-dom/server`](/reference/react-dom/server) APIs instead.

0 commit comments

Comments
 (0)