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

Function flexRender

packages/solid-table/src/index.tsx:14–25  ·  view source on GitHub ↗
(
  Comp: ((props: TProps) => JSX.Element) | JSX.Element | undefined,
  props: TProps
)

Source from the content-addressed store, hash-verified

12export * from '@tanstack/table-core'
13
14export function flexRender<TProps>(
15 Comp: ((props: TProps) => JSX.Element) | JSX.Element | undefined,
16 props: TProps
17): JSX.Element {
18 if (!Comp) return null
19
20 if (typeof Comp === 'function') {
21 return createComponent(Comp, props)
22 }
23
24 return Comp
25}
26
27export function createSolidTable<TData extends RowData>(
28 options: TableOptions<TData>

Callers 7

AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…