MCPcopy Create free account
hub / github.com/plotly/dash / isSimpleFunctionComponent

Function isSimpleFunctionComponent

dash/deps/react-dom@18.3.1.js:28172–28174  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

28170 }
28171
28172 function isSimpleFunctionComponent(type) {
28173 return typeof type === 'function' && !shouldConstruct$1(type) && type.defaultProps === undefined;
28174 }
28175 function resolveLazyComponentTag(Component) {
28176 if (typeof Component === 'function') {
28177 return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent;

Callers 1

updateMemoComponentFunction · 0.70

Calls 1

shouldConstruct$1Function · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…