React Weather App
Finished implementing your suggestion to move the API Fetching Functions to the Home and City pages respectively.
Only issue is when switching between cities in the list, the page doesn't render the new data. To render the new city data you have to click on the "Current Location" city link to take you back to the home page, then click on the city you wanted to view.
Not sure why this is, would appreciate some guidance. My assumption is that the City component is mounted and isn't rendering the new page until the City component is unmounted and remounted (by clicking the Home city which unmounts city and mounts Home).
4
1 comment
Jesus Barba
5
React Weather App
Developer Pro
skool.com/developerpro
Learn how to code. Make money. Have fun. Enjoy life.
Leaderboard (30-day)
powered by