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

Function isClassComponent

packages/react-table/src/index.tsx:39–47  ·  view source on GitHub ↗
(component: any)

Source from the content-addressed store, hash-verified

37}
38
39function isClassComponent(component: any) {
40 return (
41 typeof component === 'function' &&
42 (() => {
43 const proto = Object.getPrototypeOf(component)
44 return proto.prototype && proto.prototype.isReactComponent
45 })()
46 )
47}
48
49function isExoticComponent(component: any) {
50 return (

Callers 1

isReactComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…