Closed Choozii closed 2 months ago
const { coords, timestamp, error, loading } = useGeolocation(); if(loading){ return <p>loading...</p> } if(error){ return <p>{error.message}</p> } return ( <div> <p>Latitude: {coords.latitude}</p> <p>Longitude: {coords.longitude}</p> <p>Altitude: {coords.altitude}</p> <p>Timestamp: {new Date(timestamp).toLocaleString()}</p> </div> );
๐พ Pull Request
1๏ธโฃ Spec
2๏ธโฃ ๋ณ๊ฒฝ ์ฌํญ
3๏ธโฃ ์์ ์ฝ๋
4๏ธโฃ ๊ด๋ จ ๋ฌธ์ (์ ํ ์ฌํญ)