A simple React web app that allows users to check the weather for a specific city.
- Enter the name of a city to get its current weather information.
- Displays temperature, humidity, wind speed, and weather icon.
- Dynamic weather icon changes based on the weather conditions.
- Clone this repository to your local machine.
- Navigate to the project directory:
cd weather-react-app
- Install dependencies:
npm install
- Get your API key from OpenWeatherMap and replace
'YOUR_API_KEY'
inWheatherApp.js
with your actual API key. - Run the app:
npm start
- Open your browser and go to
http://localhost:3000
This project uses the OpenWeatherMap API to fetch weather data. You'll need to sign up for a free API key on their website and replace 'YOUR_API_KEY'
in the code with your actual API key.
- React
- CSS
- Fetch API
Contributions are welcome! If you find any issues or have suggestions, feel free to open an issue or a pull request.
This project is licensed under the MIT License.