BuyNowButton and AddToCart differs #2241
suiramdev
started this conversation in
Ideas + Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While developing my site with Hydrogen, I noticed a difference between two React components of the framework:
For the
BuyNowButton
, avariantId
props is expected, while forAddToCartButton
, it is optional.To my eyes, they are the same button, just with a different direction. So it should also be optional.
https://shopify.dev/api/hydrogen/components/cart/buynowbutton
https://shopify.dev/api/hydrogen/components/cart/addtocartbutton
Beta Was this translation helpful? Give feedback.
All reactions