Skip to content

Commit 4a4e579

Browse files
authored
docs(hydrateRoot): update suppressHydrationWarning behavior (#7651)
1 parent fc29603 commit 4a4e579

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/content/reference/react-dom/client/hydrateRoot.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ An app fully built with React will usually not have any calls to `root.unmount`.
9999
100100
This is mostly useful if your React root's DOM node (or any of its ancestors) may get removed from the DOM by some other code. For example, imagine a jQuery tab panel that removes inactive tabs from the DOM. If a tab gets removed, everything inside it (including the React roots inside) would get removed from the DOM as well. You need to tell React to "stop" managing the removed root's content by calling `root.unmount`. Otherwise, the components inside the removed root won't clean up and free up resources like subscriptions.
101101
102-
Calling `root.unmount` will unmount all the components in the root and "detach" React from the root DOM node, including removing any event handlers or state in the tree.
102+
Calling `root.unmount` will unmount all the components in the root and "detach" React from the root DOM node, including removing any event handlers or state in the tree.
103103
104104
105105
#### Parameters {/*root-unmount-parameters*/}
@@ -270,7 +270,7 @@ export default function App() {
270270
271271
</Sandpack>
272272
273-
This only works one level deep, and is intended to be an escape hatch. Don’t overuse it. Unless it’s text content, React still won’t attempt to patch it up, so it may remain inconsistent until future updates.
273+
This only works one level deep, and is intended to be an escape hatch. Don’t overuse it. React will **not** attempt to patch mismatched text content.
274274
275275
---
276276

0 commit comments

Comments
 (0)