4 ms·
Most UI frameworks, such as React, operate as if they are informal state machines. Each component is a state/nested state, they have their mount/unmount logic a
by ralusek 4y ago
Most UI frameworks, such as React, operate as if they are informal state machines. Each component is a state/nested state, they have their mount/unmount logic as onEnter/onExit transitions for the state, most of the event handlers the application cares about will be added or torn down within the context of that state, i.e. onClicks, onSubmit, onKeyPress, onChange, data loaded, etc.
- madsbuch 4y agoI think this is an insistence. But yes, most processes can be mapped out as state machines.