A simple React weather app that displays weather information from the OpenWeatherMap API.
- Sign up over at openweathermap.org to get an API key.
- Fork the project and clone it locally.
- Create a file at the root of the project called
.env.localwith the following contents:
REACT_APP_API_URL = 'https://api.openweathermap.org/data/2.5' REACT_APP_API_KEY = The API key you obtained from openweathermap.org REACT_APP_ICON_URL = 'https://openweathermap.org/img/w'
Subscribe to React.js Examples
Get the latest posts delivered right to your inbox