State Machines in JavaScript with XState, v2

State Machines in JavaScript with XState, v2

4 hours, 8 minutes CC

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.

This course and others like it are available as part of our Frontend Masters video subscription.

Published: December 21, 2021
Get Unlimited Access Now
Table of Contents

Introduction

Software Modeling

XState

Actions

Context

Guards

Compound States

Parallel States

Final States

History States

Actor Model

Wrapping Up