cassiozen / useStateMachine

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

Update README.md #30

Closed klausbreyer closed 3 years ago

klausbreyer commented 3 years ago

I have added a little something to the documentation that would have helped me massively in understanding. (and would have saved me 30 min)

i wasn't clear if TOGGLE is something that comes from the library or if it is for the user to choose.. until i realized how it relates to send() and that it always refers to the current state.

this was not immediately obvious to me. Maybe it is for others. Take it or leave it. Thanks for the nice work, fits exactly my react usecases!

klausbreyer commented 3 years ago

Sure :) Thanks for the clarification.

cassiozen commented 3 years ago

@all-contributors please add @klausbreyer for doc.

allcontributors[bot] commented 3 years ago

@cassiozen

I've put up a pull request to add @klausbreyer! :tada: