Open jozef-slezak opened 4 years ago
function App() {
let data = ['value X', 'value Y']
return(
<div>
<table>
<tr>
<th>ID</th>
<th>Name</th>
</tr>
{data.map((value, index) => {
return <tr>
<td>{index}</td>
<td>{value}</td>
</tr>
})}
<tr>
<td>2</td>
<td>produkt 2</td>
</tr>
</table>
</div>
)
}