useStateMachine: A ½ kb state machine hook for React
I can't get over how amazing hooks are and how resistant I initially was to them.<p>They encapsulate logic so well and do an amazing job being this isolated data/event source.<p>I find that I reuse them far more than I reuse components.