Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.
Solved

How can i use React or JQuery for theme extension development?

ahmetalan
Shopify Partner
4 0 0

Hi,

I'm developing theme extension for my app, i can use react on admin side  but on I'm consufed about How can i use React or JQuery for theme extension development? 

 

 

Accepted Solution (1)

Liam
Shopify Staff
2669 288 729

This is an accepted solution.

Hi Ahmetalan,

 

It's not possible to include external JS libraries or frameworks in theme app extensions - this is an intentional limitation to ensure that merchants' storefronts remain as performant as possible. You can include your own JS within the /assets folder, I'd recommend manually adding whatever JS you need to a file within the app project.

 

Hope this helps,

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Reply 1 (1)

Liam
Shopify Staff
2669 288 729

This is an accepted solution.

Hi Ahmetalan,

 

It's not possible to include external JS libraries or frameworks in theme app extensions - this is an intentional limitation to ensure that merchants' storefronts remain as performant as possible. You can include your own JS within the /assets folder, I'd recommend manually adding whatever JS you need to a file within the app project.

 

Hope this helps,

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog