State Machines

This lesson talks about state machines, a concept closely related to discriminated unions.

Introduction to state machines

Managing the state is one of the hardest parts of frontend development. Many frameworks and libraries have been created to help with this task. One of the proposed approaches is to utilize state machines. A state machine is a directed graph where nodes represent all possible states of a view or of the whole app, and where edges represent possible transitions between the states.

Get hands-on with 1400+ tech skills courses.