#stvbdn

1 messages ยท Page 1 of 1 (latest)

cobalt flameBOT
junior zodiac
#

Hi ๐Ÿ‘‹ I believe so. My understanding is that you create all of the Elements you want to use in the same instance elements instance, but that you can mount the elements at different times or on different pages.

hollow mist
#

Thanks for the quick response ๐Ÿ™‚ I guess my problem is how do I have the same elements instance across two different pages?

junior zodiac
#

How are you planning to provide/serve your multiple pages currently?

hollow mist
#

Im using React, and I have 4 components each representing a Step in the checkout process. so Step3 contains the AddressElement, and Step4 contains the PaymentElement.

junior zodiac
#

I'm not too familiar with React, so I'm not sure how you would accomplish this there. Are you familiar with a way to persist variables across your pages in your React applications?

A quick web search is pointing me towards localStorage for both JS and React approaches, but I don't have hands-on experience with that so I'm not certain whether it will work here.

hollow mist
#

ah okay that makes sense

#

Thanks!

#

I'll look into it ๐Ÿ™‚

junior zodiac
#

๐Ÿ‘ sounds good, good luck!