(e)
| 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> |
nothing calls this directly
no test coverage detected