Skip to content

Instantly share code, notes, and snippets.

Created January 29, 2023 10:15
What would you like to do?
<div class="weather-app">
<h1>Weather Report</h1>
<label for="city">City:</label>
<input id="city" type="text" onchange={handleCityChange} value={city} />
<button type="button" onclick={getWeather}>Get Weather</button>
<div class="weather-report">
<p>City: {city}</p>
<p>Temperature: {temperature}</p>
<p>Humidity: {humidity}</p>
<p>Description: {description}</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment