Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reggi/shopify-theme-react

Proof of concept for a Shopify Theme that uses React
https://github.com/reggi/shopify-theme-react

Last synced: about 1 month ago
JSON representation

Proof of concept for a Shopify Theme that uses React

Awesome Lists containing this project

README

        

# Shopify Theme / React

The two main files:

* [Fetching product json](https://github.com/reggi/shopify-theme-react/blob/master/assets/test.jsx)
* [Routing every template](https://github.com/reggi/shopify-theme-react/blob/master/snippets/routes.liquid)

What was really cool was the polling on the ajax request to automatically update the state of a set JSON variable. For instance if I had a product type set as "Shirt" and changed it to "Pants" in the admin, it would automatically update on the page without refreshing.