MCPcopy Create free account
hub / github.com/microsoft/SandDance / shouldConstruct

Function shouldConstruct

docs/external/js/react-dom.development.js:23802–23805  ·  view source on GitHub ↗
(Component)

Source from the content-addressed store, hash-verified

23800 };
23801
23802 function shouldConstruct(Component) {
23803 var prototype = Component.prototype;
23804 return !!(prototype && prototype.isReactComponent);
23805 }
23806
23807 function isSimpleFunctionComponent(type) {
23808 return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;

Callers 3

resolveLazyComponentTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected