Skip to content

v8: Need help on how to customize cells with custom components #3986

Answered by Gusis93
JosepSalvat asked this question in Q&A
Discussion options

You must be logged in to vote

Works the exact same way for me:

...
const CustomCell = ({ cell }) => {
  return <p>{cell.getValue()}</p>;
};

const defaultColumns = [
  table.createDataColumn("firstName", {
    cell: CustomCell
  }),
]
...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tannerlinsley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants