This is a simple weather application built with React that allows users to fetch and display weather information for a specified city using the OpenWeatherMap API.
- Users can enter the name of a city and get current weather details.
- Displays:
- City name
- Country
- Current temperature (in Celsius)
- Weather description (e.g., cloudy, sunny)
- Weather icon
The app fetches live weather data from OpenWeatherMap and displays the information in an easy-to-read format.
Make sure you have the following installed:
-
Clone the repository to your local machine:
git clone <repository-url> cd <repository-folder>
Install the required dependencies:
bash npm install Replace the OpenWeatherMap API key (appid) with your own API key in the following line of App.js