Browse Source

Fix params order for hydrateRoot reference (#4552)

main
Marco Antonio Ghiani 3 years ago
committed by GitHub
parent
commit
3fa71f02a2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/reference-react-dom-client.md

2
content/docs/reference-react-dom-client.md

@ -71,7 +71,7 @@ root.unmount();
### `hydrateRoot()` {#hydrateroot}
```javascript
hydrateRoot(element, container[, options])
hydrateRoot(container, element[, options])
```
Same as [`createRoot()`](#createroot), but is used to hydrate a container whose HTML contents were rendered by [`ReactDOMServer`](/docs/react-dom-server.html). React will attempt to attach event listeners to the existing markup.

Loading…
Cancel
Save