@types/react-dom
Advanced tools
Comparing version 18.0.4 to 18.0.5
@@ -36,2 +36,15 @@ /** | ||
/** | ||
* Same as `createRoot()`, but is used to hydrate a container whose HTML contents were rendered by ReactDOMServer. | ||
* | ||
* React will attempt to attach event listeners to the existing markup. | ||
* | ||
* **Example Usage** | ||
* | ||
* ```jsx | ||
* hydrateRoot(document.querySelector('#root'), <App />) | ||
* ``` | ||
* | ||
* @see https://reactjs.org/docs/react-dom-client.html#hydrateroot | ||
*/ | ||
export function hydrateRoot( | ||
@@ -38,0 +51,0 @@ container: Element | Document, |
{ | ||
"name": "@types/react-dom", | ||
"version": "18.0.4", | ||
"version": "18.0.5", | ||
"description": "TypeScript definitions for React (react-dom)", | ||
@@ -52,3 +52,3 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom", | ||
}, | ||
"typesPublisherContentHash": "eece74582af8ebd4481a525f029fabf9f46a0e9ebdbbe41e96ef23fb087205c2", | ||
"typesPublisherContentHash": "4732472d5e01f7ef46a8073630a67b5623c0afe2b37ffe340d0ce7a650274749", | ||
"typeScriptVersion": "3.9", | ||
@@ -55,0 +55,0 @@ "exports": { |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 12 May 2022 19:01:46 GMT | ||
* Last updated: Mon, 23 May 2022 19:01:40 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: `ReactDOM`, `ReactDOMServer` |
@@ -61,3 +61,3 @@ // forward declarations | ||
* | ||
* If you call `ReactDOM.hydrate()` on a node that already has this server-rendered markup, | ||
* If you call `ReactDOMClient.hydrateRoot()` on a node that already has this server-rendered markup, | ||
* React will preserve it and only attach event handlers, allowing you | ||
@@ -64,0 +64,0 @@ * to have a very performant first-load experience. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27922
583