EivindArvesen / react-workshop

React / Redux Workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction to React

This workshop will give a whirlwind tour of React, state management and Redux, demonstrating the core principles and providing a platform to build on.

Focus of this workshop

We will learn about React and build React components using the well-known Todo application as our use-case. After making a few components and making them render to the screen, we'll use hooks to add state to our components, and then install Redux. We'll then add more state to be handled by Redux and inject it back into React.

Time estimate: 4 hours

Intended audience

Compared to other Nerdschool workshops, this one is considerably more advanced.

Since React - and the other libraries we'll use - are libraries for JavaScript, there is an expectation that you have a fair understanding of:

  • JavaScript
  • Web development (you know how request/response works and have used Chrome Developer Tools (F12) or similar).

What you need

  • Google Chrome
  • A modern text editor that understands JavaScript and React. We recommend Visual Studio Code but others such as Web Storm and Atom are good choises.
  • NodeJS and npm installed on your machine. You should have the latest LTS release of NodeJS or later, which (when writing this) is 10.16.0 of node and 6.9.0 of npm. Use node -v and npm -v to check your version.

Bash (Windows Specifics)

These steps are known to work on Bash (which comes by default on macOS and most Linux Distros), which is likely your default shell.

On Windows, you'll need to take some extra steps. You can either install:

How to get started

  • Start by cloning this repository into a folder on your computer. If you've never used git before, you can alternatively use the the "Download ZIP" button to the right.
  • Although you have this README.md file on your computer it's easier to read it on GitHub, so we recommend you keep this page open with the exercise tasks.

Exercises

This repository contains a set of exercises organized in folders. Each folder contains a README.md describing the exercise.

Remember that you can kill the currently active process on your shell by pressing:

CTRL + C

Symbols and notation used in exercises

Icons with special meaning

✏️ - A task you should do 📖 - A section of text to read (no tasks, just information). 💡 - Additional information. ❗ - Something important. ❓ - Open-ended question for the reader ("What do you think would happen if...") 💩 - Bad practice (don't-do-this) ⭐ - A bonus task (not required)

Keyboard keys

Will look like this:

CTRL + ALT + C

Diff blocks

Emphasizes how lines of text should change.

- this text was removed
+ and replaced with this text

Proposed solutions

Should you want or need to look at proposed solutions for the assignments, these are available at the following tags:

  • ex1
  • ex2
  • ex3
  • ex4
  • ex5

You can check them out using git checkout <TAG>

Standing on the shoulders of giants

These excercises were originally forked from the excellent React and Redux workshop materials by Bergen Nerdschool.

About

React / Redux Workshop