27
React State & Events

React State & Events

The day-one React you actually use. Eight lessons on state, events, forms, and the small rules that keep them sane.

~ 120 min·8 lessons·updated apr 2026

What you'll learn


Lessons

Read in order. Each lesson stands on its own, but the order is deliberate.

8 lessons · ~120 min total

  1. 01
    useState in one lesson
    Declaring state, the setter, and the rules every hook quietly relies on.
    15 min
  2. 02
    Updates are scheduled
    Why state changes feel delayed, and the callback form that fixes the edge cases.
    15 min
  3. 03
    State is a snapshot
    Why your render sees an older value than the one you just set.
    14 min
  4. 04
    Event handlers
    onClick, onChange, the synthetic event, and the right time to call preventDefault.
    14 min
  5. 05
    Controlled inputs
    Text, checkbox, radio, select — and the controlled-versus-uncontrolled split in plain English.
    15 min
  6. 06
    Updating objects and arrays
    Why mutation breaks React, and the spread, map, and filter patterns that replace it.
    15 min
  7. 07
    Lifting state up
    When two siblings need the same data, and the cost of moving it upward.
    16 min
  8. 08
    Derived state vs state
    The you-didn't-need-state pattern. Compute during render instead of syncing later.
    16 min

Prerequisites

  • · Finished React Foundations
  • · Comfortable with arrow functions and closures
  • · Have read or written event handlers in vanilla JS

After this, try