Version: XState v4
Actions in XState
Learn how to use actions in XState.
Actions
Statecharts give you a great deal of control over running side effects in your app. The first method is through actions.
Built-in actions
Along with the assign action, XState has several other built-in actions which can do different things in a state machine. We’ll introduce a couple of built-in actions for now and learn about the others later.