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

Function flexRender

packages/qwik-table/src/index.tsx:20–31  ·  view source on GitHub ↗
(
  Comp: any, // TODO: add renderable type
  props: TProps,
)

Source from the content-addressed store, hash-verified

18 isFunction(comp) && comp.name === 'QwikComponent'
19
20export function flexRender<TProps extends object>(
21 Comp: any, // TODO: add renderable type
22 props: TProps,
23) {
24 return !Comp ? null : isQwikComponent(Comp) ? (
25 <Comp {...props} />
26 ) : isFunction(Comp) ? (
27 Comp(props)
28 ) : (
29 Comp
30 )
31}
32
33export function useQwikTable<TData extends RowData>(
34 options: TableOptions<TData>,

Callers 4

main.tsxFile · 0.90
main.tsxFile · 0.90
main.tsxFile · 0.90
main.tsxFile · 0.90

Calls 2

isQwikComponentFunction · 0.85
isFunctionFunction · 0.70

Tested by

no test coverage detected