react-new-window
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "react-new-window", | ||
"description": "🔲 Pop a new window React using window.open", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "react", |
@@ -42,3 +42,3 @@ /** | ||
mounted: false | ||
}; | ||
} | ||
} | ||
@@ -50,3 +50,3 @@ | ||
render() { | ||
if (!this.state.mounted) return null; | ||
if (!this.state.mounted) return null | ||
return ReactDOM.createPortal(this.props.children, this.container) | ||
@@ -56,4 +56,4 @@ } | ||
componentDidMount() { | ||
this.openChild(); | ||
this.setState({mounted: true}); | ||
this.openChild() | ||
this.setState({ mounted: true }) | ||
} | ||
@@ -60,0 +60,0 @@ |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2
14677
5
289