mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
check if is undefined
This commit is contained in:
@@ -40,7 +40,7 @@ assign(
|
||||
function isInternalComponentType(type) {
|
||||
return (
|
||||
typeof type === 'function' &&
|
||||
typeof type.prototype === 'object' &&
|
||||
typeof type.prototype !== 'undefined' &&
|
||||
typeof type.prototype.mountComponent === 'function' &&
|
||||
typeof type.prototype.receiveComponent === 'function'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user