πμμΈ - μ΄μ€λΈλ
useEffect(() => { { !city ? getCurrentLocation() : getWeatherByCity(); } }, [city]);
{ { β¦. } }
π«ν΄κ²°
useEffect(() => { !city ? getCurrentLocation() : getWeatherByCity(); }, [city]);