а через браузер вылазит ошибка "Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0"? В чем беда?
                  
                  
                  export const getWeather = (city) => {
                  
                  
                      return fetch(`api.openweathermap.org/data/2.5/weather?q=${city}&lang=ru&appid=3f851218de70a48246f30d53b40325f3`)
                  
                  
                      .then(response => {
                  
                  
                        console.log(response.json());
                  
                  
                      })
                  
                  
                      .catch(err => {
                  
                  
                        console.error(err);
                  
                  
                      });
                  
                  
                    };
                  
                  
                  
                  
                  
                    getWeather('москва');
                  
                  
                
responce.data
Не канает
Response.json() уберите json, and prosto response
В нетворк загляни и сразу поймёшь в чем проблема
Это граф?
Спасибище) Я не дописал протокол?
Обсуждают сегодня