#Khalil-react-elements
1 messages ยท Page 1 of 1 (latest)
Thanks Karbi
I'm not the best with react, but I believe the main difference here is that if there was an issue with getting clientSecret the first one would not attempt to render Elements + CheckoutForm at all, whereas the second one may attempt to and fail down the line
(but I'm not 100% sure on this)
๐ I'm heading out, but if you need anything else @solemn magnet can help answer
๐
As a React user, I'll confirm what karbi said - the first doesn't so much "pass a secret" as simply not render the element if the secret isn't present - I believe the secret is assumed to be in the options. In either case, the secret need to be available to work - the two just have different user experiences.
I do more-or-less the same thing