Skip to content

Commit

Permalink
Always wrap children if it's a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
eightypop committed Apr 24, 2016
1 parent 02dd120 commit 23f35cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ var mq = React.createClass({
var hasMergeProps = Object.keys(props).length > 0;
var wrapChildren = this.props.component ||
React.Children.count(this.props.children) > 1 ||
(typeof this.props.children === 'string' && hasMergeProps);
typeof this.props.children === 'string';
if (wrapChildren) {
return React.createElement(
this.props.component || 'div',
Expand Down

0 comments on commit 23f35cb

Please sign in to comment.