46 | Batteries Included 47 |
48 |49 | 50 | Despite the tiny size, useStateMachine is a feature-complete 51 | {' '}State Machine library, including features like Entry/Exit callbacks, Guarded transitions 52 | & Extended State (Context) 53 | 54 |
55 |63 | Amazing TypeScript experience 64 |
65 |66 | 67 | Focus on automatic type inference (auto completion for both TypeScript & JavaScript users 68 | without having to manually define the typings) while giving you the option to specify 69 | and augment the types for context & events. 70 | 71 | 72 |
73 |81 | Made for React 82 |
83 |
84 |
85 | Instead of introducing many new concepts, useStateMachine follow idiomatic React patterns you and
86 | your team are already familiar with.
87 | The library itself is actually a thin wrapper around React's useReducer & useEffect.
88 |
89 |