The Ultimate React Course

Build interactive web apps with React: components, JSX, props, state, events, forms, effects, data loading, hooks and context, all in your browser.

  • 0 students
  • 86 lessons
  • 6 h 31 min

Created by Ayim Nelson

What you will learn

  • Explain what React is and how components build up a page
  • Write JSX with expressions, lists, keys and conditions
  • Pass data between components with props and children
  • Make pages interactive with events and useState
  • Build controlled forms with validation
  • Use effects for timers, the page title and loading data, with loading and error states
  • Organise state with useRef, custom hooks, useReducer and context
  • Set up a real React project with Vite and carry your skills to React 19

About this course

React is the most popular way to build interactive websites and apps. In this course you learn it by building the menu and ordering app for Auntie Esi's Chop Bar in Osu, Accra, one short lesson at a time: components and JSX, props, lists, state and events, forms, effects, loading data, refs, custom hooks, reducers and context. Every lesson's code runs right here in your browser, with nothing to install.

For: anyone who has finished the JavaScript Crash Course or already knows the basics of JavaScript: variables, functions, arrays, objects, arrow functions and array methods like map() and filter(). A little HTML and CSS helps too.

By the end: you'll have built a working chop bar app where customers browse a menu loaded from a server, fill a basket, place an order through a validated form and switch between English and Twi, and you'll know how to start your own React project with Vite.

Course content

11 sections · 86 lessons

Meet React7 lessons
JSX8 lessons
  • What JSX isReading · 3 min
  • JavaScript inside curly bracesReading · 3 min
  • One parent elementReading · 3 min
  • FragmentsReading · 3 min
  • Closing every tagReading · 3 min
  • className and htmlForReading · 3 min
  • Inline styles in JSXReading · 3 min
  • The chop bar signboardExercise · 10 min
Components6 lessons
  • Function componentsReading · 3 min
  • Components inside componentsReading · 3 min
  • Component names start with a capitalReading · 3 min
  • Reusing a componentReading · 3 min
  • Splitting a page into componentsReading · 4 min
  • Lay out the menu pageExercise · 12 min
Props7 lessons
  • Passing propsReading · 3 min
  • Destructuring propsReading · 3 min
  • Strings, numbers and other propsReading · 3 min
  • Default prop valuesReading · 3 min
  • The children propReading · 3 min
  • Props are read-onlyReading · 3 min
  • Menu item cardsExercise · 12 min
Lists and conditions8 lessons
  • Rendering a list with map()Reading · 3 min
  • Why lists need keysReading · 3 min
  • Filtering a list before renderingReading · 3 min
  • Conditional rendering with ifReading · 3 min
  • The ternary operator and &&Reading · 3 min
  • Watch out for 0 with &&Reading · 3 min
  • Returning nullReading · 3 min
  • The full menuExercise · 12 min
Events and state11 lessons
  • Handling a clickReading · 3 min
  • Passing a value to a handlerReading · 3 min
  • Why a normal variable isn't enoughReading · 3 min
  • useStateReading · 4 min
  • Each copy has its own stateReading · 3 min
  • Updating from the previous valueReading · 3 min
  • State that holds an objectReading · 3 min
  • State that holds an arrayReading · 4 min
  • Lifting state upReading · 4 min
  • Passing functions down as propsReading · 3 min
  • The order basketExercise · 15 min
Forms7 lessons
  • Controlled inputsReading · 4 min
  • Submitting a formReading · 3 min
  • Select menusReading · 3 min
  • CheckboxesReading · 3 min
  • One state object for a formReading · 4 min
  • Simple validationReading · 3 min
  • The order formExercise · 15 min
Effects6 lessons
  • What an effect isReading · 3 min
  • The dependency arrayReading · 4 min
  • Cleaning up an effectReading · 4 min
  • Effects run twice in Strict ModeReading · 3 min
  • You might not need an effectReading · 3 min
  • The kitchen timerExercise · 12 min
Loading data9 lessons
  • Why the lessons fake the serverReading · 3 min
  • A fake fetch with a PromiseReading · 3 min
  • Loading data in an effectReading · 4 min
  • Showing a loading messageReading · 3 min
  • Handling errorsReading · 4 min
  • async and await in an effectReading · 4 min
  • Ignoring a stale responseReading · 4 min
  • What real fetch code looks likeReading · 3 min
  • Load the menu from the kitchenExercise · 15 min
Refs, custom hooks and reducers8 lessons
  • useRef for page elementsReading · 3 min
  • useRef for values that don't redrawReading · 3 min
  • Writing a custom hookReading · 4 min
  • Custom hooks share logic, not stateReading · 3 min
  • useReducerReading · 4 min
  • Writing a reducerReading · 4 min
  • useState or useReducer?Reading · 3 min
  • A basket with useReducerExercise · 15 min
Context and real projects9 lessons
  • Prop drillingReading · 3 min
  • Creating a contextReading · 3 min
  • Reading context with useContextReading · 3 min
  • Changing a context valueReading · 3 min
  • Setting up a real project with ViteReading · 4 min
  • Components in their own filesReading · 4 min
  • What carries over to React 19Reading · 3 min
  • English or Twi with contextExercise · 15 min
  • Final quizQuiz · 10 min

Reviews

No reviews yet.

Comments

Log in to join the conversation.

Loading comments...