Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Put react app block into theme editor causing Minified React error #299

Put react app block into theme editor causing Minified React error #299

jhyinidcp
Shopify Partner
5 0 0

Hello , currently i am still new in shopify , i was planning to use react to make custom app block for my online store theme, basically , i transpile my react index js into  js file that liquid can accept it as a script. When i try to put my react app block into theme , it is successfully showed and functional:

jhyinidcp_1-1727233242825.png

But the console there has an error when i put this block: jhyinidcp_0-1727233079466.png

My side try to check whether has put everything that mentioned , so far my side did include the 

<div id="root"></div> in my liquid file. May i know anyone here encounter this issue before? Thank you
Reply 1 (1)

jhyinidcp
Shopify Partner
5 0 0

index.js  :

jhyinidcp_0-1727233549835.png

liquid file for the app block:

jhyinidcp_1-1727233585156.png