How to use with a HOC
I am trying to create a HOC for the following Table:
When I pass columns with
ColumnDef<Entity>[]
to the DataGrid directly, it correctly passes the Entity
type:
But when I pass the same columns to the HOC, the TData
type is unknown
.2 Replies
conscious-sapphireOP•3y ago
conscious-sapphireOP•3y ago
Here is a reproduction: https://codesandbox.io/s/purple-silence-8oy5tm?file=/src/main.tsx
dimbslmh
CodeSandbox
purple-silence-8oy5tm - CodeSandbox
purple-silence-8oy5tm by dimbslmh using @tanstack/react-table, react, react-dom