...
return (
{
this.state.table.map(row => {
return <TableRow row={row}/>
})
}
)
function TableRow(props) {
return(
<tr>
props.row.map(cell => {
<TableCell />
})
</tr>
)
}
...
return (
{
this.state.table.map(row => {
return {
<tr key=...>
<TableRow row={row}/>
</tr>
}
})
}
)
function TableRow(props) {
return(
props.row.map(cell => {
<TableCell />
})
)
}