Typescript issues with useReactTable hook #5351
-
Hey folks, got a really quick question here. I'm scaffolding a super basic table in React based off this example and this section in the documentation, but typescript is giving me some grief about the accessor functions when I pass my
I've tried both using the
As well as formatting them myself by typing the columns array with
What am I missing? Full code with error is linked below - you may have to close and reopen |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm silly - wasn't tagging the |
Beta Was this translation helpful? Give feedback.
I'm silly - wasn't tagging the
users
array with thedata
key in the options object, instead just supplying it directly, which obviously created a bunch of issues :)