cassiozen / useStateMachine

The <1 kb state machine hook for React
MIT License
2.38k stars 47 forks source link

Todo: add a section on XState #5

Closed cassiozen closed 3 years ago

cassiozen commented 3 years ago

I’m a huge XState fan and this library obviously took a lot of inspiration from it. XState is still the golden standard for state machines in JavaScript, but this library has a more niche use case:

Finally, it has a heavy focus on type inference - it's nice when a library can provide autocompletion and type checking without requiring you to manually provide typing definitions.