Replies: 2 comments 1 reply
-
You could write your own in a few lines: const firstRow = rows[0]
const columns = React.useMemo(() => Object.keys(firstRow).map(key => {
return {
header: key,
accessorKey: key,
}
}), [firstRow]) Something to that effect. |
Beta Was this translation helpful? Give feedback.
1 reply
-
It finally has worked.
Now is there a way to do: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to create the header by iterating through object keys?
Have checked the documentation so far, as well as examples, couldn't find any matching example.
Right now for every object need to define an individual header, makes it difficult having a multipurpose page (accepting any object as input) for creating a table.
Beta Was this translation helpful? Give feedback.
All reactions