better check

This commit is contained in:
Nicole Levy
2018-04-05 20:09:55 -04:00
parent 34816fc046
commit 273370758e
+1 -1
View File
@@ -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.'
);