I'm using BigCommerce stencil cornerstone theme, which uses jQuery and handlebars. I followed this guide form the officicial react documentation but it does not work. I believe this does not work because handlebars and bigcommerce backend which does server side rendering to be able to do templating. How can I add react components or page to my existing BigCommerce non-react project?
CodePudding user response:
if you're wanting to use react for your storefront, you may be interested in going headless. When you do this, your front end can be build in react (or another other language/platform of choice, like Next.js, Nuxt.js or WordPress for example). If you're not wanting to go headless but you're wanting a widget or something similar on your storefront, you could consider building an app (helpful blog: https://medium.com/bigcommerce-developer-blog/how-to-build-your-first-bigcommerce-app-7ea3f4e4f8b2). Take a look at our app documentation (here: https://developer.bigcommerce.com/docs/3ef776e175eda-big-commerce-apps-quick-start) to see if this is what you're looking for! :)
CodePudding user response:
This article might help you.
Good luck!