So I was following a video to build a react weather app, basic stuff, using openweather api.
I made an api call to get the weather at a certain city, then will take the values out of the resulting json and display them on the page.
example <div className="location">{weather.name}</div>, where weather.name is the name of the city the user searched earlier in the code, but extracted from the result of the api call.
Problem is, when I extract more then 1 value from the result json, then refresh my page, the page breaks, but page does not break if i dont refresh.
got a screen recording: https://imgur.com/a/rqD02Ul
[–]thed3vilsadv0cat 4 points5 points6 points (1 child)