This utilizes the SWR React Hooks package for remote data fetching. This will be a web page that will serve several purposes to a user and will certainly grow over time.
This PR served the purpose of refactoring some code and using dummy lat and lon numbers so the data will render. It solves this issue using geo location utilizing the browsers location API data that is accessible to developers. The package I am using for this is react-geolocation. This app now successfully asks the user for their location in their browser. It still utilizes the information hardcoded into the sample URL from openweathermap.org to allow the app to still work, however, the code is there in the src/components/WeatherGeoBody/index.js file.
This PR served the purpose of refactoring some code and using dummy lat and lon numbers so the data will render. It solves this issue using geo location utilizing the browsers location API data that is accessible to developers. The package I am using for this is react-geolocation. This app now successfully asks the user for their location in their browser. It still utilizes the information hardcoded into the sample URL from openweathermap.org to allow the app to still work, however, the code is there in the src/components/WeatherGeoBody/index.js file.
This solves issue number #3