-
-
Save arun12209/1446af3fdc69ca10dc274380ee10d649 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="weather-app"> | |
<h1>Weather Report</h1> | |
<form> | |
<label for="city">City:</label> | |
<input id="city" type="text" onchange={handleCityChange} value={city} /> | |
<button type="button" onclick={getWeather}>Get Weather</button> | |
</form> | |
<div class="weather-report"> | |
<p>City: {city}</p> | |
<p>Temperature: {temperature}</p> | |
<p>Humidity: {humidity}</p> | |
<p>Description: {description}</p> | |
</div> | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment