Version Data - Data properties describing the current state
Transition Methods - Methods with signature like transition(...inputs): this that
take inputs and generate a new immutable state with updated version data.
Remarks
Immutability
States are immutable; all changes go through transition methods
Transition methods return new immutable States
Transitions
Transition methods can be destructured and called independently (e.g., const { increment } = state; increment();)
Versioned data.
An immutable object combining:
transition(...inputs): thisthat take inputs and generate a new immutable state with updated version data.Remarks
Immutability
Transitions
const { increment } = state; increment();)