i have a problem with creating react table, acctualy i have this code
render() {
var tableData = [
{name: this.state.users}
];
var tableRow = [];
for(var x = 1; x <= this.state.users.lenght; x++) {
tableRow.push(this.state.users[x]);
if (x % 4 == 0) {
tableData.push(tableRow);
tableRow = [];
}
}
return (
<Table1>
{tableData.map((row, index) => {
return (
<tr key={row + index}>
{row.map((cell, index) => {
return (
<td key={"cell_" + index}>{cell}</td>
);
})}
</tr>
);
})}
</Table1>
in my tableData i have some firebase data which is retrieved properly, but i have a problem with placing it to table cell, actually with this table code i got an error "TypeError: row.map is not a function" How can i solve that? Thanks :)

console.log(tableData)and show us the result ?this.state.users.lenght->this.state.users.length