MCPcopy
hub / github.com/facebook/react / shouldConstruct

Function shouldConstruct

packages/react-reconciler/src/ReactFiber.js:305–308  ·  view source on GitHub ↗
(Component: Function)

Source from the content-addressed store, hash-verified

303 : createFiberImplClass;
304
305function shouldConstruct(Component: Function) {
306 const prototype = Component.prototype;
307 return !!(prototype && prototype.isReactComponent);
308}
309
310export function isSimpleFunctionComponent(type: any): boolean {
311 return (

Callers 3

isFunctionClassComponentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected