#stvbdn
1 messages ยท Page 1 of 1 (latest)
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.
Thanks for the quick response ๐ I guess my problem is how do I have the same elements instance across two different pages?
How are you planning to provide/serve your multiple pages currently?
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.
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.
๐ sounds good, good luck!