just testing Tanstack react-table lib with react + Typescript, and it seams that I can’t return tsx/jsx from cell function of ColumnDef:
Am I missing something here?
2
Well it turned out that my file was with extension .ts and not .tsx, so changing from .ts to .tsx solved problem.
Identify the difference between JSX and JS (brackets).
cell: ({ getValue }) => <div>{getValue()}</div>
Click here to cancel reply.
2
Answers
Well it turned out that my file was with extension .ts and not .tsx, so changing from .ts to .tsx solved problem.
Identify the difference between JSX and JS (brackets).