Skip to content

Commit

Permalink
better check
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole Levy committed Apr 6, 2018
1 parent 34816fc commit 2733707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/ReactElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export function cloneAndReplaceKey(oldElement, newKey) {
*/
export function cloneElement(element, config, children) {
invariant(
!(element === null || element === undefined),
element != null,
'Cannot clone a null or undefined element.'
);

Expand Down

0 comments on commit 2733707

Please sign in to comment.