mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
better check
This commit is contained in:
1 parent
34816fc046
commit
273370758e
1 file changed
+1
-1
@@ -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.'
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user