diff --git a/src/index.js b/src/index.js index e765c26..cd6994c 100644 --- a/src/index.js +++ b/src/index.js @@ -92,6 +92,11 @@ var mq = React.createClass({ props, this.props.children ); + } else if (props) { + return React.cloneElement( + this.props.children, + props + ); } else { return this.props.children; }