Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Introduction to State Machines with XState and React
Rating: 4.3 out of 5(141 ratings)
578 students

Introduction to State Machines with XState and React

Learn how to build complex web applications and manage state with finite State Machines using Javascript and React
Created byJakub Skoneczny
Last updated 12/2020
English

What you'll learn

  • Building State Machines with Javascript and Typescript
  • Better state management in React applications
  • Describing complex business logic in a simple way
  • Building less error-prone web applications

Course content

12 sections20 lectures1h 31m total length
  • Curriculum and prerequisites2:12

    Learn to build state machines with XState and React, covering states, events, transitions. Explore nested and parallel machines, actions, guards, TypeScript, and Code Sandbox with video player and search component.

  • Source code and presentation slides0:16

Requirements

  • Basic Javascript knowledge
  • Basic React knowledge
  • No local setup required

Description

This course is an introduction to finite state machines built with Javascript. State machines can describe complex applications straightforwardly, which makes them intuitive to work with and less error-prone. State machines can be easily integrated with React, which allows us to take a whole new approach for state management in React applications.

This course shows some basic concepts about state machines and their usage with XState. Also, it contains multiple coding examples, which allow students to have a better understanding of this topic.

Agenda:

  • Introduction to state machines

  • States, events, and transitions

  • Actions

  • Context

  • Guards

  • More on transition

  • Invoking services

  • Invoking machines

  • Delays

Alongside the presentations, we will also code some real-world examples, like:

  • Video player with autoplay option

  • Fetch machine for handling async requests

  • Search component with debounce

Who this course is for:

  • Beginner or Intermediate Javascript and React developers curious about the form of designing complex applications
  • Web developers interested in cutting edge technology
  • Anyone who would like to start their journey with state machines
  • Anyone who would like to improve their React skills