Rendering Web Components

Rendering Web Components

krishnajithr
Shopify Partner
1 0 0

Hi, I've an angular application that use babylonjs, it is exported as a web componet and we are currently using it as a woocommerce plugin. The UI is written using tailwind, and directly makes api calls to our server and load the data for babylonjs.

We are planning to create a shopify clone for this app. I was wondering if I could use the web component (hosted in my server), by loading the script using a script tag inside the shopify admin side. 
Is this considered an anti-pattern?

If so, will bundling the web component inside the shopify app bundle be considered the right way to embed a web component?
Do you think using web componets itself is considered a bad practice? If not, is it okay for web components to make api calls directly to my serve?  

What other things you think might be essential for us to know, before we start writing something like this?

Replies 0 (0)