I don't believe there is a good way to pass children to renderComponent, for example:
{
header: 'Name',
sortBy: 'name',
initialSort: 'asc',
accessorKey: 'name',
cell: ({ row }) => renderComponent(Button, { href: `/customers/${row.original.customerId}`, variant: 'link' })
},
The Button component requires a child snippet for the caption of the button.
I don't believe there is a good way to pass children to
renderComponent, for example:The Button component requires a child snippet for the caption of the button.