Browse Source

[beta] Fix typo on apis/react-dom/render (#5191)

* [beta] Fix typo on apis/react-dom/render

* Update render.md

Co-authored-by: dan <dan.abramov@gmail.com>
main
Sebastian Silbermann 2 years ago
committed by GitHub
parent
commit
36656af692
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/content/apis/react-dom/render.md

2
beta/src/content/apis/react-dom/render.md

@ -206,7 +206,7 @@ An app fully built with React will usually only have one `render` call with its
#### Caveats {/*caveats*/}
* In React 18, `render` was replaced by [`createRoot`.](/apis/react-dom/client/createRoot) Please use for React 18 and beyond.
* In React 18, `render` was replaced by [`createRoot`.](/apis/react-dom/client/createRoot) Please use `createRoot` for React 18 and beyond.
* The first time you call `render`, React will clear all the existing HTML content inside the `domNode` before rendering the React component into it. If your `domNode` contains HTML generated by React on the server or during the build, use [`hydrate()`](/apis/react-dom/hydrate) instead, which attaches the event handlers to the existing HTML.

Loading…
Cancel
Save