Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created January 29, 2023 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arun12209/1446af3fdc69ca10dc274380ee10d649 to your computer and use it in GitHub Desktop.
Save arun12209/1446af3fdc69ca10dc274380ee10d649 to your computer and use it in GitHub Desktop.
<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