diff --git a/src/index.js b/src/index.js index 14e984c..bd9521a 100644 --- a/src/index.js +++ b/src/index.js @@ -95,7 +95,7 @@ var mq = React.createClass({ return null; } var props = omit(this.props, excludedPropKeys); - if (this.props.component || this.props.children.length > 1) { + if (this.props.component || React.Children.count(this.props.children) > 1) { return React.createElement( this.props.component || 'div', props,