useStateMachine: A ½ kb state machine hook for React
Can anyone provide an example of a situation where something like this is a pragmatic solution? Please also provide the drop dead simple version too and explain why this would be more elegant and intuitive in comparison.<p>Types of examples I am not interested in seeing:<p>- a DropDown list using a state machine (or something similarly simple that’s been solved a million times in a simple way).<p>Edit:<p>I just think stuff like this is too weird and dangerous to evangelize, and I’m at my wits end in dealing with simple components that have been over abstracted.