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.They encapsulate logic so well and do an amazing job being this isolated data/event source.I find that I reuse them far more than I reuse components.