Scope
React Weather app is a responsive web app that uses OpenWeatherMap's API. This was the first project where I used axios. The reason why I used axios over fetch() was to narrow down the steps, and axios cuts the step of passing a request to a .json() method; returning only an object.
Technologies Used
- React
- Sass
- OpenWeatherMap API
Development
In the following code snippet, I used the try and catch error handling for axios to fetch the OpenWeatherMap's API error