Hello! This is my first topic here. I am building an weather app in React that uses the MetaWeather API. Everything is fine until I try to send the property of an object inside of an array that’s on my state. This is what I mean:
When I try to render {this.state.data.consolidated_weather[0].the_temp}, I get the following error:
As you can see, I’m already checking if I have data before doing anything else. So, what could it be? I’ve really ran out of ideas to fix this I guess it’s something with the API request, but what?
I really appreciate any kind of help!
PS.: Sorry about my bad english, it’s not my first language