Help in Reactjs: How to show the data that is inside the second "Other" Array, only those that are in the first example Array d.Code if you print
const data = [...this.state.info];
return (
<ReactTable
data={data}
columns={[
{
columns: [
{
Header: "Code",
id: "code",
width: 50,
accessor: d => d.Code
},
{
Header: "Other",
id: "other",
width: 50,
accessor: d => d.other.Skills //???
},
]
}
]}
/>
);
My Array is (Modified)
{
"odata.metadata": "https://link.com#",
"value": [
{
"Code": "A1",
"Name": "Erick",
"Email": "[email protected]",
"Other": [
{
"Skill": "test!!",
"Ref": "test!!" },
}
]
}
],
"odata.nextLink": /more/?$skip=10"
}