Docs
CodeRabbit
Cloudflare
Railway
AG Grid
OpenRouter
WorkOS
SerpAPI
Clerk
Netlify
Sentry
Electric
Unkey
Prisma
CodeRabbit
Cloudflare
Railway
AG Grid
OpenRouter
WorkOS
SerpAPI
Clerk
Netlify
Sentry
Electric
Unkey
Prisma
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Static Functions API Reference
Legacy API Reference
Table API Reference

flexRender

Function: flexRender()

ts
function flexRender<TProps>(Comp, props): ReactNode | Element;
function flexRender<TProps>(Comp, props): ReactNode | Element;

Defined in: FlexRender.tsx:45

If rendering headers, cells, or footers with custom markup, use flexRender instead of cell.getValue() or cell.renderValue().

Type Parameters

TProps

TProps extends object

Parameters

Comp

Renderable<TProps>

props

TProps

Returns

ReactNode | Element

Example

ts
flexRender(cell.column.columnDef.cell, cell.getContext())
flexRender(cell.column.columnDef.cell, cell.getContext())