I currently have a table display a couple of rows with different columns that I defined using array mapping. However, I want the last column or every row to have a button, but right now when I try to log text, it doesn't even show up. Why is this? The text I'm trying to log is where my code says
<TableRowColumn>
INSERT BUTTON HERE
</TableRowColumn>
const row = (currentValue, index, header) => (
<TableRow key={`t-${index}`}>
{
header.map((headerName, index) => {
return (
<TableRowColumn key={`trc-${index}`}>
{currentValue[headerName.prop]}
</TableRowColumn>
<TableRowColumn>
INSERT BUTTON HERE
</TableRowColumn>
)
})
}
</TableRow>
);
export default ({ data, header }) =>
<Table>
<TableHeader>
<TableRow>
{
header.map((headerName, index) => // single line arrow implied return
<TableHeaderColumn key={`thc-${index}`}>
{headerName.name}
</TableHeaderColumn>
)
}
</TableRow>
</TableHeader>
<TableBody>
{data.map((currentValue, index) => row(currentValue, index, header))}
</TableBody>
</Table>