Giter Site home page Giter Site logo

seasonsbyhooks's Introduction

This project was bootstrapped with Create React App.
And used the Hooks system in React.

Try this project in develop mode

Here are some step to run this simple project :

1. Download or Clone

Clone this project by downloading or git clone.

2. npm install

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.

3. npm start

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.

Learn More

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.

seasonsbyhooks's People

Contributors

brianwu291 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.