I wrote the following code:
<table>
{item.awards.map((obj,i) =>
<tbody>
<tr>
<td>Name</td>
<td>:</td>
<td>{obj.title}</td>
</tr>
<tr>
<td>Date</td>
<td>:</td>
<td>{obj.award}</td>
</tr>
{i !== item.awards.length-1 ? <hr /> : ''}
</tbody>
)}
</table>
The table displays correctly with a separator (<hr/>
) after each block. However, the issue now is that the hr length doesn't span the full width. I can't set the table to be 100% width as it will impact the td elements.