Type Parameters
- Status extends string
- Signal extends string
Returns ReactiveDFAState<Status, Signal>
a tuple with the current state, and a transition function taking signals and returning the next
state (or the current state if not in strict mode and received a bad signal).
A hook for simulating a deterministic finite automaton (DFA). for most practical purposes use the
useObservableDFAhook.