local-weather/components/LocationSearch.tsx

16 lines
318 B
TypeScript
Raw Normal View History

'use client'
import { createContext } from "react";
export default function LocationSearch() {
2024-05-04 21:04:30 +00:00
return (
<>
<input id="location" type="text" placeholder="enter a location to get the weather"/>
<label htmlFor="location" className="hidden">Enter location to get the weather!</label>
</>
2024-05-04 21:04:30 +00:00
);
}