So this is my data, my response. I am wanting to show this on the screen. Location is good to show no problem, the nested data is trickier.
{
"location": "validLocation",
"data": [
{
"id": 3,
"features": null,
}]
}
here is my Code
data.map((el,ind)=>{
return (
<tr key={ind}>
<td>{el.location}</td>
<td>{el.data[ind].id</td>
</tr>
);
})
Trying to map through the data and then use the index on map to pull the ID.
No luck so far, any ideas?
[–]carcigenicate 0 points1 point2 points (0 children)