MCPcopy Index your code
hub / github.com/TanStack/table / isReactComponent

Function isReactComponent

packages/react-table/src/index.tsx:29–37  ·  view source on GitHub ↗
(
  component: unknown
)

Source from the content-addressed store, hash-verified

27}
28
29function isReactComponent<TProps>(
30 component: unknown
31): component is React.ComponentType<TProps> {
32 return (
33 isClassComponent(component) ||
34 typeof component === 'function' ||
35 isExoticComponent(component)
36 )
37}
38
39function isClassComponent(component: any) {
40 return (

Callers 1

flexRenderFunction · 0.85

Calls 2

isClassComponentFunction · 0.85
isExoticComponentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…