• Stars
    star
    180
  • Rank 213,097 (Top 5 %)
  • Language
    JavaScript
  • Created over 8 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A step-by-step workshop for learning React fundamentals while building an app

React FUNdamentals Workshop with Ben Ilegbodu

Maintenance Status Build Status license PRs Welcome

Watch on GitHub Star on GitHub Tweet

A step-by-step workshop to build a React application, all while learning React fundamentals. Best if accompanied with live facilitation by me 🙂.

Pre-Workshop Instructions

In order to maximize our time during the workshop, please complete the following tasks in advance:

  • Set up the project (follow setup instructions below)
  • Install and run Zoom on the computer you'll be developing with (for remote workshops)
  • Set up dual monitors for live coding, if possible (for remote workshops)
  • Install React Developer Tools for Chrome (recommended) or Firefox
  • Install a JSX-friendly code editor, such as Visual Studio Code
  • Brush up on modern ES.next features, if they are unfamiliar to you
  • Have experience building websites with HTML, CSS, and JavaScript DOM APIs

The more prepared you are for the workshop, the better it will go for you! 👍🏾

System Requirements

All of these must also be available in your PATH in order to be run globally. To verify things are set up properly, run:

git --version
node --version
npm --version

If your node version is version 9 or lower, you can install nvm to manage multiple versions of node.

If you have trouble with any of these, learn more about the PATH environment variable and how to fix it here for Windows or Mac/Linux.

Setup

After you have verified that you have the proper tools installed (and at the proper versions), getting setup should be a breeze. Run the following commands:

git clone https://github.com/benmvp/react-workshop.git
cd react-workshop
npm run setup

This will likely take a few minutes to run. It will clone the repo, install all of the JavaScript dependencies needed to build our app, and setup our workshop dev directory.

If it fails, please read through the error logs and see if you can figure out what the problem is. Double check that you have the proper system requirements installed. If you are unable to figure out the problem on your own, please feel free to file an issue with everything (and I mean everything) from the output of the commands you ran.

Running the app

We will be build a Giphy search app step-by-step in this workshop. To get started and verify that everything has been installed correctly, run:

npm start

The app should pop up in your default browser running at http://localhost:3000/. The app should be completely blank because we haven't built anything yet! But you can check out the app deployed online to see what the final state will look like.

For those interested, the app is a standard app bootstrapped by Create React App.

Workshop Outline

Let's learn the React fundamentals! ⚛️

🧔🏾 About Me

Hiya! 👋🏾 My name is Ben Ilegbodu. 😄

🕘 Schedule

Each step in the workshop builds on top of the previous one. If at any point you get stuck, you can find the answers in the source code of the current step. Any step can be used as a starting point to continue on to the remaining steps.

Asking Questions

  • Please interrupt me and ask questions! Others likely will have the same question.
  • However, unrelated questions are better sent to Twitter or my AMA.

🖥️ Zoom Hygiene (for remote workshops)

  • Keep your video on (if possible) to make it feel more human and lively
  • Keep your microphone muted unless your talking to avoid background noise distractions
  • Answer each other's questions in the chat
  • Use breakout rooms to help each other

FUNdamental Concepts

Here is what you'll come away knowing at the end of the workshop...

  • Using JSX syntax (Step 1)
  • Maintaining component state with useState hook (Step 2)
  • Handling user interaction (Step 2)
  • Making API calls with useEffect hook (Step 3)
  • Rendering dynamic lists of data (Step 4)
  • Conditionally rendering components (Step 4)
  • Handling HTML forms & form elements (Step 5)
  • Writing readable, reusable and composable components (Step 6)
  • Type-checking props (Step 7)
  • Interacting with the DOM directly with useRef hook (Step 8)
  • Factoring out logic from components into custom hooks (Step 9)
  • Leveraging ES6+ to maintain application state with useReducer hook (Step 10)
  • Applying component styling with CSS classes (throughout)

🧠 Elaboration & Feedback

Each step has an Elaboration & Feedback form link at the end. After you're done with the exercise and before jumping to the next step, please take a few minutes to fill that out to solidify your learning.

At the end of the workshop, I would greatly appreciate your overall feedback. Share your workshop feedback.

🤝 Code of Conduct

All attendees, speakers, sponsors and volunteers at this workshop are required to agree with the code of conduct. Organizers will enforce this code throughout the event. We expect cooperation from all participants to help ensure a safe environment for everybody.

👉🏾 First Step

Go to Step 0 - Begin.

License

All of the workshop material is available for private, non-commercial use under the GPL version 3 license. If you would like to use this workshop to conduct your own workshop, please contact me first at [email protected].

More Repositories

1

frontend-confs

Frontend Conferences for Speaking
381
star
2

react-esnext

Official React tutorial rewritten in ES.next
JavaScript
135
star
3

learning-es6

Repo for all the code used in the Learning ES6 blog series
HTML
75
star
4

benmvp.com

Ben Ilegbodu's personal site
MDX
22
star
5

benmvp-cli

A highly-opinionated, zero-config CLI for consistent infra for Ben Ilegbodu's Typescript-based libraries
TypeScript
21
star
6

url-lib

A simple, lightweight string utility for Node and browsers that supports serializing and parsing URLs and query strings.
TypeScript
20
star
7

you-dont-need-js-for-that

You don't need JavaScript for that!
HTML
10
star
8

react-composite-events

A collection of higher-order components (HOCs) to easily create composite events in React components
JavaScript
10
star
9

react-typescript-minishop

TypeScript for React Developers minishop
TypeScript
9
star
10

slides

Repository for the slides for talks I have given
HTML
7
star
11

bart-salmon

An app aiming to maximize likelihood of getting a Bart seat by going backwards
TypeScript
7
star
12

zero-to-react-minishop

Zero to React with Hooks Minishop
JavaScript
6
star
13

dom-info

A jQuery-alternative for retrieving info about rendered DOM nodes
JavaScript
5
star
14

migrate-react-hooks-minishop

Migrating to React Hooks Minishop
JavaScript
5
star
15

react-exposed

Repo showing examples from React exposed! 😮 talk
JavaScript
3
star
16

array-to-lookup

Convert an array into a lookup object
JavaScript
2
star
17

RedditClient

A super simple Reddit client written in ReactNative for learning purposes
JavaScript
2
star
18

eslint-config-benmvp

Ben Ilegbodu's .eslintrc as an extensible shared config for all of his projects
JavaScript
2
star
19

new-html

A simple project to test new HTML features
HTML
1
star
20

web-apis

App to test out various web APIs
1
star
21

android-studio-projects

Sample android apps built following: http://www.techotopia.com/index.php/Android_Studio_Development_Essentials
Java
1
star
22

react-boilerplate-finder

A simple React app for finding React boilerplates / starter kits
JavaScript
1
star
23

memory

A memory JavaScript app written with React, Redux & Immutable
JavaScript
1
star