I have data that looks like
[{subCategory: "subCategory", name: "name", data: [{ GradeName: "grade", Population: "population", }] }] and I am running this code in my component
{currentCoinData.map((coin) => ( <tr key={coin.id}> <td>{coin.subCategory}</td> <td>{coin.fullName || coin.coinName}</td> <td></td> </tr> ))} How can I map the data key from the array of objects onto the td jsx component?
dataarray always of the same size (otherwise you'll get not quite aligned table rows with different number of<td>elements in them)?