Fix DOM node warning
bdf2a9bb12
broke the warning that children aren't suppose to be real DOM nodes.
This commit is contained in:
parent
735223fc9f
commit
e5ba82a44b
|
@ -74,7 +74,7 @@ var traverseAllChildrenImpl =
|
|||
} else {
|
||||
if (type === 'object') {
|
||||
invariant(
|
||||
children || children.nodeType !== 1,
|
||||
!children || children.nodeType !== 1,
|
||||
'traverseAllChildren(...): Encountered an invalid child; DOM ' +
|
||||
'elements are not valid children of React components.'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue