Skip to content
JS

State Machines in JavaScript with XState, v2

Course on Master.dev by David Khourshid

View on Master.dev (opens in a new tab)
4 h 8 min
LengthVideo runtime
Subscription
Price modelMaster.dev plan
42
Lessons
Dec 2021
Published21 Dec 2021

About this course

Description from Master.dev

If you build large JavaScript apps and want to stop running into weird edge cases, you'll want to learn state machines! Learn to model your app with clear and robust app logic with state machines and statecharts. You'll build state machines without any libraries in pure JavaScript, then use XState to take advantage of a wide variety of other features.

What it covers

42 lessons
  1. 01

    Introduction

    1. Introduction
  2. 02

    Software Modeling

    1. Software Modeling
    2. State Machine in Vanilla JavaScript
    3. State Modeling Exercise
    4. State Modeling Solution
    5. State Machines Q&A
  3. 03

    XState

    1. Getting Set Up with XState
    2. State Transitions Exercise
    3. State Transitions Solution
  4. 04

    Actions

    1. Actions
    2. Actions Exercise
    3. Actions Solution
    4. Actions Q&A
  5. 05

    Context

    1. Context
    2. Context Exercise
    3. Context Solution
  6. 06

    Guards

    1. Guards
    2. Guarded Transitions Exercise
    3. Guarded Transitions Solution
  7. 07

    Compound States

    1. Compound States
    2. Compound States Exercise
    3. Compound States Solution
  8. 08

    Parallel States

    1. Parallel States
    2. Parallel States Exercise
    3. Parallel States Solution
    4. Parallel States Q&A
Show 4 more sections
  1. 09

    Final States

    1. Final States
    2. Final States Exercise
    3. Final States Solution
    4. Final States Q&A
  2. 10

    History States

    1. History States
    2. History States Exercise
    3. History States Solution
    4. History States Q&A
  3. 11

    Actor Model

    1. Actor Model Overview
    2. Actor Model in Vanilla JavaScript
    3. Ways to Invoke an Actor
    4. Actor Model Exercise
    5. Actor Model Solution
    6. Actor Model Q&A
    7. Testing
  4. 12

    Wrapping Up

    1. Wrapping Up

Similar state management courses

  1. State Modeling in React with XState

    Master.dev · David Khourshid · 35 lessons · Dec 2020

    4 hSubscription
    Master.dev35Dec 2020
  2. TanStack Start & TanStack Query

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

    4 h 23 minSubscription
    Master.dev26Jun 2026
  3. Advanced Redux with Redux Toolkit

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

    3 h 52 minSubscription
    Master.dev21Feb 2023
  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. Intermediate Redux with Redux Toolkit

    Educative · Ohans Emmanuel · 35 lessons · Nov 2024

    Intermediate6 h 15 minSubscription
    Educative35Nov 2024
  8. Beginner2 h
    Codecademy1Dec 2022

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