On calling an API , got a response, stored it in a variable "items" and it is getting displayed on console also. When i access items.data[0].id, it is getting displayed in console but when i try to display same thing in render method, error is coming that :-
TypeError : cannot read property 0 of undefined.
I am calling the API call in ComponentWillMount() function in react.