Render child elements inside component
August 25, 2022
https://stackoverflow.com/questions/45670326/es6-array-map-doesnt-return-anything-reactjs https://stackoverflow.com/questions/52428879/objects-are-not-valid-as-a-react-child-if-you-meant-to-render-a-collection-of-c
return JSON.stringify(data.response);
return data.response.map((element: any) => {
console.log("Inside component map", element);
return <div key={element.period_id}>{element.period_id}</div>;
});