Git Product home page Git Product logo

react's Introduction

Please help us improve and share your feedback! If you find better tutorials or links, please share them by opening a pull request.

HackYourFuture - React

In this 5 week module we will learn React!

Planning

Week Topic Read Homework
1. React Components JSX, Elements, Components and Props Week 1 Homework
2. State and Lifecycle Lifecycle, Events, Conditional Rendering, List and Keys Week 2 Homework
3. Forms and Managing State Forms, Manage State, Thinking in React Week 3 Homework
4. Flux & MobX MobX, Flux Concepts Week 4 Homework
5. API Integration MobX Async Actions Week 5 Homework

Read up before we get started

Watch this video from Facebook about why they started React:

https://youtu.be/nYkdrAPrdcw

Also be sure you're familiar with ES6-syntax. See this video about ES6 (the video is in Node, but the syntax for React is the same):

https://www.lynda.com/Node-js-tutorials/Switching-ES6-Node-js/546100-2.html

This is a handy reference of all features of ES6:

http://es6-features.org

Please do not worry about understanding all. However, do make sure you understand the following, as we'll be using them a lot:

Read about React here:

https://facebook.github.io/react/

Handing in homework

Take a look at this video made by Daan, he explains how your homework needs to be handed in.

Also review the Git workflow material from the JavaScript3 module, use this as a reference.

Slides

Find the slides used in class here:

https://slides.com/joostlubach/react-class/live

Learning examples

Counter [source]

Demonstrates:

  1. Most basic implementation of component state
  2. Handler functions bound to onClick

Clocks Example Screenshot

Clocks [source]

Follows the React docs clock example here. Uses momentjs and moment-timezone for datetime functionality.

Demonstrates:

  1. Using both state and props in a component tree
  2. Passing event handlers as props
  3. Rendering components in a loop
  4. Conditional JSX rendering (header count)
  5. State-bound lifecycle and lifecycle events (clock interval)

Clocks Example Screenshot

Real world example

Have a look at Mattijn's real world React project:

https://github.com/mattijnlahuis/beertools

The HackYourFuture curriculum is subject to CC BY copyright. This means you can freely use our materials, but just make sure to give us credit for it :)

react's People

Contributors

abdullahweb avatar isaachinman avatar joostlubach avatar mkruijt avatar spirosikmd 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.