A hook for simulating a deterministic finite automaton (DFA).
This hook should be considered an "under the hood" version. For straighforward usage, the useReactiveDFA
hook should be preferred. But for most practical purposes use the
the useObservableDFA hook.
a tuple with a ref to 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). This hook should be considered an "under the hood" version. For straighforward usage, the
useReactiveDFAhook should be preferred. But for most practical purposes use the theuseObservableDFAhook.