notrab / react-use-cart

React hook library for managing cart state
http://npm.im/react-use-cart
Apache License 2.0
367 stars 48 forks source link

docs(examples): add gatsby example #52

Closed spences10 closed 3 years ago

spences10 commented 4 years ago

First Pass, let me know if there's anything needs changing!

Thanks

notrab commented 4 years ago

This is awesome @spences10 !

What are your thoughts on sourcing products from the filesystem through YAML or JSON to give a full Gatsby ecosystem feeling?

I've done this here already which might provide a starting point.

Let me know what you think.

spences10 commented 4 years ago

This is awesome @spences10 !

What are your thoughts on sourcing products from the filesystem through YAML or JSON to give a full Gatsby ecosystem feeling?

I've done this here already which might provide a starting point.

Let me know what you think.

So, use one of the files you've linked there and use that as the source for the products on the Page component?

spences10 commented 4 years ago

Added a single file, no images, in line with the codesandbox example 👍

notrab commented 4 years ago

Looks great @spences10 🚀

spences10 commented 4 years ago

Looks great @spences10 🚀

I've moved it from draft, ready to merge @notrab 👍

github-actions[bot] commented 3 years ago

:tada: This PR is included in version 1.10.0-beta.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 3 years ago

:tada: This PR is included in version 1.10.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: