This project was bootstrapped with Create React App.
In the project directory, you can run:
This will install npm packages.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
In src folder, there are two folders: components and pages.
Dashboard page - features a fetch call that sends data to SearchForm.
CityDetails - features a fetch call that displays favorite city details.
CityList display added cities to favorite list, and gives user ability to remove city.
SearchForm displays a search form with two units, to enter city and choose temperature unit.
Using react-router-dom, we have two page routes, Dashboard (/) and CityDetails which is dynamic (/:cityName/:unit)