Skip to content
JS

State Modeling in React with XState

Course on Master.dev by David Khourshid

View on Master.dev (opens in a new tab)
4 h
LengthVideo runtime
Subscription
Price modelMaster.dev plan
35
Lessons
Dec 2020
Published29 Dec 2020

About this course

Description from Master.dev

XState helps you manage both local and global component states in React. In this course, we'll be learning to model state before we code using state machines and statecharts and then use those in our app to orchestrate complex app logic. We'll also be visualizing or machines in real-time and learning to use model-based testing.

What it covers

35 lessons
  1. 01

    Introduction

    1. Introduction
  2. 02

    State Machines

    1. Component State in React
    2. Diagramming a State Machine
    3. Refactoring with useReducer
    4. Using a Machine Object
    5. State Machine Exercise
    6. State Machine Solution
  3. 03

    XState Machines

    1. Refactoring to XState useMachine
    2. Using XState Exercise
    3. Using XState Solution
    4. Extended State
    5. Context Exercise
    6. Context Solution
    7. Parameterizing Actions
    8. Parameterizing Actions Exercise
    9. Parameterizing Actions Solution
    10. Integrating 3rd Party Libraries
  4. 04

    Transitions

    1. Guarded Transitions
    2. Guarded Transitions Exercise
    3. Guarded Transitions Solution
    4. Eventless Transitions
    5. Eventless Transitions Exercise
    6. Eventless Transitions Solution
  5. 05

    State Types

    1. Shared States with useService
    2. Hierarchical States
    3. Hierarchical States Exercise
    4. Hierarchical States Solution
  6. 06

    Actors

    1. Invoking Actors
    2. Invoking Actors Exercise
    3. Invoking Actors Solution
    4. Spawning Actors
    5. Spawning Actors Exercise
    6. Spawning Actors Solution
    7. Model-Based Testing
  7. 07

    Wrapping Up

    1. Wrapping Up

Similar state management courses

  1. Advanced Redux with Redux Toolkit

    Master.dev · Steve Kinney · 21 lessons · Feb 2023

    3 h 52 minSubscription
    Master.dev21Feb 2023
  2. State Machines in JavaScript with XState, v2

    Master.dev · David Khourshid · 42 lessons · Dec 2021

    4 h 8 minSubscription
    Master.dev42Dec 2021
  3. TanStack Start & TanStack Query

    Master.dev · Adam Rackis · 26 lessons · Jun 2026

    4 h 23 minSubscription
    Master.dev26Jun 2026
  4. Learn Redux: Fundamentals

    Codecademy · 3 lessons · Dec 2022

    Beginner5 h
    Codecademy3Dec 2022
  5. Building React Applications with Idiomatic Redux

    egghead · Dan Abramov · 27 lessons · 4.7 from 21 ratings · Jun 2016

    2 h 18 minFree
    egghead274.7 (21)Jun 2016
  6. Getting Started with Redux

    egghead · Dan Abramov · 30 lessons · 4.7 from 74 ratings · Nov 2015

    2 h 1 minFree
    egghead304.7 (74)Nov 2015
  7. Beginner2 h
    Codecademy1Dec 2022
  8. Build A React App With Redux

    egghead · Andy Van Slaars · 26 lessons · 4.5 from 11 ratings · Aug 2017

    1 h 51 minSubscription
    egghead264.5 (11)Aug 2017

A hyphen means the provider's catalogue does not state the value.

Same topic, nearest in length, up to three from any one provider.

Data read from the Master.dev catalogue on 28 Nov 2026. How the data is collected.

    Compare