#Khalil-react-elements

1 messages ยท Page 1 of 1 (latest)

nocturne raft
#

Hello! Give me a minute and I'll take a look

glacial pulsar
#

Thanks Karbi

nocturne raft
#

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)

glacial pulsar
#

got it

#

makes sense

#

thank you

nocturne raft
#

๐Ÿ‘ I'm heading out, but if you need anything else @solemn magnet can help answer

solemn magnet
#

๐Ÿ‘‹

turbid jungle
#

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