I have the array like this :
const sample = [
{ name: 'apple', detail: [{'a', 'b'}]},
{ name: 'banana', detail: [{'a', 'b'}]},
];
Let's say I want to create a table looks like the following attachment:
That's the table body part, and I have put all the details in inside of . It's creating the table as I expected but the size is really narrow and also doesn't match with the table head.
I was wondering if there's a smart way to have map multiple data in a row and embed in one table cell.
The name part (which are apple and banana) must be the first table cell with row span.