This project was bootstrapped with Create React App.
And used the Hooks system in React.
Here are some step to run this simple project :
Clone this project by downloading or git clone.
Open terminal window and go to this project folder. Run npm install
.
Note that this project was build via create-react-app. Make sure the
version of react and react-dom are 16.7.0-alpha.2 or above.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
This simple web App will ask the user's location(latitude). Determine the season of where user is
by the location information.
The main goal of Hooks system are 'more code reuse', 'write simple functional component' etc...
So just open index.js file. You'll see that whole App component are just show the state. And the state
are written in useLocation.js file. That's the Hooks system example.
To learn React, check out the React documentation.
To learn Hooks, check out the Hooks documenttation.
To learn more in the Create React App documentation.