[v7] Types problem for different columns and data. #4173
-
I just started using react-table and trying to create a generic table component. Table.tsx:
Users.tsx
Bio.tsx
The Bio component for headerData returns a type error:
A similar error is returned in the Users component. Sandbox here: https://codesandbox.io/s/ecstatic-sound-ou7ldk?file=/src/components/Bio.tsx Does anyone know how to solve the problem of types without using: any ? Any help would be much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The problem is solved with the help of generics.
|
Beta Was this translation helpful? Give feedback.
The problem is solved with the help of generics.