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

flexRender

Function: flexRender()

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

Defined in: FlexRender.tsx:46

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

ComponentChild | Element

Example

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