let [weatherData, setWeatherData] = useState({})
let fetchWeatherData = async() => {
let url = `https://api.openweathermap.org/data/2.5/forecast?q=Chicago&APPID=${process.env.APIKey}&cnt=5`
let response = await fetch(url);
let data = await response.json()
await setWeatherData(data)
}
useEffect(()=>{
fetchWeatherData()
}, [])