πŸ“Œμ›μΈ - μ΄μ€‘λΈ”λŸ­

useEffect(() => {
    {
      !city ? getCurrentLocation() : getWeatherByCity();
    }
  }, [city]);

{ { …. } }

πŸ’«ν•΄κ²°

useEffect(() => {
    !city ? getCurrentLocation() : getWeatherByCity();
  }, [city]);