Find answers to your most challenging questions with the help of IDNLearn.com's experts. Discover prompt and accurate responses from our experts, ensuring you get the information you need quickly.
The reason this happens is because the api call is asynchronus, it doesn't populate the state immediately, so the render happens first and tries to read current from the initial weather state null in the render method make sure not to read weather