MCPcopy Create free account
hub / github.com/codemistic/Web-Development / search

Function search

Weather-Web-App-main/Weather-Web-App-main/src/App.js:10–18  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

8 const [weather, setWeather] = useState({});
9
10 const search = async (e) => {
11 if(e.key === 'Enter') {
12 const data = await fetchWeather(query);
13
14 setWeather(data);
15 setQuery('');
16
17 }
18 }
19
20 return (
21 <center>

Callers

nothing calls this directly

Calls 1

fetchWeatherFunction · 0.90

Tested by

no test coverage detected