cedric-and-bob / SWRApp

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.
https://tender-jennings-989213.netlify.com/
MIT License
0 stars 0 forks source link

Geo location #4

Closed robpedersendev closed 4 years ago

robpedersendev commented 4 years ago

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