Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/mattpocock/xstate-catalogue/DLBok3SmSJbr8yUYnS3RkcF5GDtg |
with-heart
left a comment
There was a problem hiding this comment.
Just had a read-through and it's looking really great!
The article explaining how to model a reducer within xstate is high quality. I love that you explain it by incrementally transitioning from plain react state to the reducer in xstate. That makes it quite clear, and I think it helps beginners see how easy it is to go from one to the next.
One thing it might be missing is the "why" piece. Explaining why you would want to use a reducer over plain state and why you might want to use xstate for reducers over useReducer would go a very long way imo. I'm not sure newer users would be able to see the benefits of each transition through the code examples alone.
|
Aha! I didn't even mean to include this article in the PR 😂 Glad you like it dude, it's a mighty rough draft right now. Appreciate your eagle eyes |
No description provided.