It is so much easier to make any future refactors because your child components don't know anything about the XState - they get values to render and functions to run as event handlers.
Good work, and keep spreading the XState knowledge! IMO it will become the most popular library for any state management soon 🙂
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I just really like the part where you make an abstraction and don't pass
send
directly:It is so much easier to make any future refactors because your child components don't know anything about the XState - they get values to render and functions to run as event handlers.
Good work, and keep spreading the XState knowledge! IMO it will become the most popular library for any state management soon 🙂