This was a project for Eleven Fifty Academy's Red Badge.
Using typescript, create a class component and a functional component. The class component should reach out to the Geolocation API to grab your coordinates. Then using those coordinates, reach out to the Open Weather API and retrieve the weather information for your area. Once you have the weather, it should be sent to the functional component to be displayed.
- JavaScript
- React / JSX
- TypeScript
- clone the repo
- cd into the project directory
- run
npm i
to create a package.json and package-lock.json - there are no specific dependencies to install
- run
npm start
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.