I have an array with three objects in it. I want to map all of them and render them in a table in React. I am able to extract values using the map method, but I am not sure how to render them as a table.
[
{
"email":"[email protected]",
"firstname":"gowtham",
"lastname":"ss",
"password":"outlook010"
},
{
"email":"[email protected]",
"firstname":"ss",
"lastname":"ss",
"password":"ss"
},
{
"email":"[email protected]",
"firstname":"gow",
"lastname":"gow",
"password":"gow"
}
]

Following is the code I used to map the array data:
const exportHeaderData = Object.values(this.state.registeredData).map(
(data) => {
return Object.entries(data).map((key,value) => {
return `${key}: ${value}`;
});
}
);
I want to render it using a table in react.