react-iframe
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1,1 +0,1 @@ | ||
"use strict";var React=require("react");var Iframe=React.createClass({displayName:"React-Iframe",propTypes:{url:React.PropTypes.string.isRequired,width:React.PropTypes.string,height:React.PropTypes.string},getDefaultProps:function getDefaultProps(){return{height:"100%",width:"100%"}},shouldComponentUpdate:function shouldComponentUpdate(nextProps){return this.props.url!==nextProps.url},render:function render(){return React.createElement("iframe",{ref:"iframe",frameBorder:"0",src:this.props.url,style:{position:"fixed",height:this.props.height,width:this.props.width},height:this.props.height,width:this.props.width})}});module.exports=Iframe; | ||
"use strict";var React=require("react");var Iframe=React.createClass({displayName:"React-Iframe",propTypes:{url:React.PropTypes.string.isRequired,width:React.PropTypes.string,height:React.PropTypes.string},getDefaultProps:function getDefaultProps(){return{height:"100%",width:"100%"}},shouldComponentUpdate:function shouldComponentUpdate(nextProps){return this.props.url!==nextProps.url},render:function render(){return React.createElement("iframe",{ref:"iframe",frameBorder:"0",src:this.props.url,style:{position:"fixed",height:this.props.height,width:this.props.width},height:this.props.height,width:this.props.width})}});module.exports=Iframe; |
{ | ||
"name": "react-iframe", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Iframes with react", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"react": "^0.13.x" | ||
"react": ">=0.13.x" | ||
}, | ||
@@ -11,0 +11,0 @@ "devDependencies": { |
@@ -9,3 +9,3 @@ # React IFrame | ||
<Iframe src="http://www.example.com" [string width, [string height]] /> | ||
<Iframe url="http://www.example.com" [string width, [string height]] /> | ||
@@ -16,2 +16,2 @@ Optional properties width and height can be sent as either percentage (eg. '100%') or px (eg. '100px'); | ||
Clone and execute _npm install_ & _npm run demo_ | ||
Clone and execute _npm install_ & _npm run demo_ |
Sorry, the diff of this file is not supported yet
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
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
11251
16
80
16