Socket
Socket
Sign inDemoInstall

react-teleport

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-teleport - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

5

package.json

@@ -7,3 +7,3 @@ {

"main" : "./src/index.js",
"version" : "0.1.0",
"version" : "0.1.1",
"license" : "MIT",

@@ -15,3 +15,4 @@ "private" : false,

"keywords" : [
"react"
"react",
"reactjs"
],

@@ -18,0 +19,0 @@ "dependencies" : {

23

src/destination.js

@@ -35,16 +35,23 @@ var React = require('react');

},
setChild: function (child) {
if (!this.unmounted) {
this.setState({
child: child
});
}
},
add : function (child) {
this.setState({
child: child
});
this.setChild(child);
},
remove : function () {
remove : function () {
this.setState({
child: null
});
this.setChild(null);
},
componentWillMount : function () {
this.unmounted = false;
if (destinations.hasOwnProperty(this.props.name)) {

@@ -59,2 +66,4 @@

this.unmounted = true;
delete destinations[this.props.name];

@@ -61,0 +70,0 @@ },

Sorry, the diff of this file is not supported yet

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