Giter Club home page Giter Club logo

intro-react-workshop's Introduction

FAC React Workshop

An introductory workshop for FAC students to learn about React.

Contents

  1. React elements
  2. Functional components
  3. Class-based components
  4. Forms in React
  5. Stopwatch Workshop

Note

We'll be writing our code in a single index.html file for now. There are three scripts included on the page: React, ReactDOM and Babel. The first two expose React and ReactDOM as globals. The Babel script allows us to use a special <script type="text/babel"> to have our JS 'transpiled' into standard ES5. This will let us write ES6 and other React specific syntax.

This set-up is simpler to jump into without having to learn about complex build-systems when you are really trying to learn React. It also demonstrates that React isn't something magical that requires modern JS and WebPack etc. It's just a JavaScript library that you can include in an HTML page.

This is in no way a best practice, so please don't build a real app this way :)

We'll look at Bundlers a bit later on, and will eventually modularise our code using Parcel.

Bonus Reading

If you're finished early check out these entries in the React Docs. They give a slightly higher-level look at how you should think about building React apps:

  1. Lifting State Up
  2. Thinking In React

intro-react-workshop's People

Contributors

oliverjam avatar astroash avatar

Watchers

Kostas Minaidis 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.