Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Payment Checkout & Shopping Cart#36

Draft
mattpocock wants to merge 1 commit intomasterfrom
payment-checkout-and-shopping-cart
Draft

Payment Checkout & Shopping Cart#36
mattpocock wants to merge 1 commit intomasterfrom
payment-checkout-and-shopping-cart

Conversation

@mattpocock
Copy link
Copy Markdown
Owner

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 24, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mattpocock/xstate-catalogue/DLBok3SmSJbr8yUYnS3RkcF5GDtg
✅ Preview: https://xstate-catalog-git-payment-checkout-and-shopping-cart-ma-55ee3f.vercel.app

Copy link
Copy Markdown
Contributor

@with-heart with-heart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mattpocock
Copy link
Copy Markdown
Owner Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants