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

Function isSimpleFunctionComponent

docs/external/js/react-dom.development.js:23807–23809  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

23805 }
23806
23807 function isSimpleFunctionComponent(type) {
23808 return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
23809 }
23810 function resolveLazyComponentTag(Component) {
23811 if (typeof Component === 'function') {
23812 return shouldConstruct(Component) ? ClassComponent : FunctionComponent;

Callers 1

updateMemoComponentFunction · 0.85

Calls 1

shouldConstructFunction · 0.85

Tested by

no test coverage detected