i have json array like this
EMAIL: (3) ["[email protected]", "[email protected]", "[email protected]"]
FIRSTNAME: (3) ["John", "Harry", "Howard"]
LASTNAME: (3) ["Smith", "Pierce", "Paige"]
SMS: (3) ["33123456789", "33111222222", "33777888898"]
I am trying to create a table like this
then group of firstName , LastName and so on
in render() i have tried
{columnMapRows.EMAIL.map(row => (
<TableRow >
<TableCell align="center">{row}</TableCell>
</TableRow>
))}
But i dont want to map with column name , i am looking for generic solution . email , firstname , lastname are dynamic , coming form csv file , they can be changed anytime
i have also tried foreach and simple array loop . but it doesnt work Please suggest
