weatherAPI1 [React 오답노트] Api 서비스를 이용하여 사용자에게 위치, 날씨정보 제공하기 Weather API를 이용하여 사용자의 위치를 기반으로 도시와 현재 날씨를 제공한다. * 먼저 파일 내에 axios, geolocation을 설치해 주어야 한다. yarn add axios yarn add react-navigator-geolocation img.jsx -> Landing 화면을 분할하여 보여줄 코드 import { ImgContainorAboutus, ImgContainorConsulting, ImgContainorDefault, ImgContainorInterpretation, Title1, Title2, ShortSummary, LocationAndWeather } from "./style"; import getUserLocationAndWeather from "../.. 2023. 1. 25. 이전 1 다음