Socket
Socket
Sign inDemoInstall

@types/react-dom

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-dom - npm Package Compare versions

Comparing version 18.0.4 to 18.0.5

13

react-dom/client.d.ts

@@ -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,

4

react-dom/package.json
{
"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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc