Socket
Socket
Sign inDemoInstall

react-portal

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-portal - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

2

lib/portal.js

@@ -85,3 +85,3 @@ import React from 'react';

}
this.portal = ReactDOM.render(React.cloneElement(props.children, {closePortal: this.closePortal}), this.node);
this.portal = ReactDOM.unstable_renderSubtreeIntoContainer(this, React.cloneElement(props.children, {closePortal: this.closePortal}), this.node);
}

@@ -88,0 +88,0 @@

@@ -6,3 +6,3 @@ {

"author": "Vojtech Miksu <vojtech@miksu.cz>",
"version": "1.0.2",
"version": "1.1.0",
"license": "MIT",

@@ -9,0 +9,0 @@ "repository": {

@@ -124,3 +124,3 @@ 'use strict';

}
this.portal = _reactDom2['default'].render(_react2['default'].cloneElement(props.children, { closePortal: this.closePortal }), this.node);
this.portal = _reactDom2['default'].unstable_renderSubtreeIntoContainer(this, _react2['default'].cloneElement(props.children, { closePortal: this.closePortal }), this.node);
}

@@ -127,0 +127,0 @@ }, {

Sorry, the diff of this file is too big to display

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