MCPcopy
hub / github.com/TanStack/table / flexRender

Function flexRender

packages/react-table/src/index.tsx:18–27  ·  view source on GitHub ↗
(
  Comp: Renderable<TProps>,
  props: TProps
)

Source from the content-addressed store, hash-verified

16 * If rendering headers, cells, or footers with custom markup, use flexRender instead of `cell.getValue()` or `cell.renderValue()`.
17 */
18export function flexRender<TProps extends object>(
19 Comp: Renderable<TProps>,
20 props: TProps
21): React.ReactNode | React.JSX.Element {
22 return !Comp ? null : isReactComponent<TProps>(Comp) ? (
23 <Comp {...props} />
24 ) : (
25 Comp
26 )
27}
28
29function isReactComponent<TProps>(
30 component: unknown

Callers 15

TableFunction · 0.90
TableComponentFunction · 0.90
TableFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
TableBodyRowFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
TableFunction · 0.90

Calls 1

isReactComponentFunction · 0.85

Tested by 3

TableFunction · 0.72
TableComponentFunction · 0.72
TableFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…