Hi! Yeah typically you’d bundle up your component, with the xcomponent library, into a file on your site or cdn — say https://mysite.com/my-xcomponent.js
Then you’d load that file in two places:
- On the page you want to render the component
- Inside the iframe for the component
There’s a demo repo to help set up this kind of bundle here: https://github.com/krakenjs/xcomponent-demo
Hope this helps!