( Comp: ((props: TProps) => JSX.Element) | JSX.Element | undefined, props: TProps )
| 12 | export * from '@tanstack/table-core' |
| 13 | |
| 14 | export 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 | |
| 27 | export function createSolidTable<TData extends RowData>( |
| 28 | options: TableOptions<TData> |