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

Function isFunctionClassComponent

packages/react-reconciler/src/ReactFiber.js:318–322  ·  view source on GitHub ↗
(
  type: (...args: Array<any>) => mixed,
)

Source from the content-addressed store, hash-verified

316}
317
318export function isFunctionClassComponent(
319 type: (...args: Array<any>) => mixed,
320): boolean {
321 return shouldConstruct(type);
322}
323
324// This is used to create an alternate fiber to do work on.
325export function createWorkInProgress(current: Fiber, pendingProps: any): Fiber {

Callers 1

mountLazyComponentFunction · 0.90

Calls 1

shouldConstructFunction · 0.70

Tested by

no test coverage detected