Skip to content

Actor models and state machines in a React web thanks to XState v5 package

Notifications You must be signed in to change notification settings

guillempuche/actors-and-state-machine

Repository files navigation

React app using actor models and state machines from XState library

React app

Watch the video explanation of the web and architecture

Run app

  1. Install packages npm i
  2. Run web npm run dev
  3. Open the localhost on the browser

Extra

ts-result

ts-result is a TypeScript library that provides Result and Option objects, à la Rust. It allows for more expressive error handling and control flow. It helps in handling success and error states without relying on exceptions, making the code more predictable and easier to maintain.

@statelyai/inspect

@statelyai/inspect is a tool from Stately.ai that allows you to visualize and inspect XState state machines and actor models in real-time. It helps in debugging and understanding the state transitions and events in your application, providing a powerful way to develop and troubleshoot state machines.