Would it be possible to get a working

Would it be possible to get a working code sample of embedded code in react? My main conundrum is adding an init function with customer user data within the component itself. All of the example I've seen online show the init function outside of the component. I put mine in a useeffect that waits for the user email to load. It works but it's not ideal. I get many refreshes before the embedded window loads. I'm also having inconsistent experiences across different browsers.
Was this page helpful?