Skip to content

dayhaysoos/use-shopping-cart

Repository files navigation

use-shopping-cart

All Contributors

NPM

A React Hook that handles shopping cart state and logic for Stripe.

https://useshoppingcart.com

Product JSON example Front-End code example Serverless code example Click to open gist.

Documentation

View our comprehensive documentation website. ✨📚

Frequently Asked Questions

This is a list of questions that you might have about use-shopping-cart once you get started.

Why am I getting an error about formatToParts not being a function on older browsers?

You need to polyfill formatToParts if you want to support older browsers. You can find more info on manually polyfilling formatToParts in issue #158.

Why am I getting an SSR error about text content not matching?

It is likely that you are using a value like cartCount that is loaded from LocalStorage which doesn't exist on the server. More info in issue #122

Contributing to use-shopping-cart

If you're working on this project please check out the CONTRIBUTING.md file.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Kevin Cunningham
Kevin Cunningham

⚠️ 💻
Ian Jones
Ian Jones

⚠️
Nick DeJesus
Nick DeJesus

⚠️ 📝 💼 🐛 🔣 📖 🔍 🚇 📆 💬 👀 🛡️
Shodipo Ayomide
Shodipo Ayomide

📖
Anders Bech Mellson
Anders Bech Mellson

💻
Thor 雷神
Thor 雷神

📖 💻 ⚠️
Ryan Warner
Ryan Warner

📖
Horacio Herrera
Horacio Herrera

📖
Brian Douglas
Brian Douglas

📖
Brittney Postma
Brittney Postma

📖
Prince Wilson
Prince Wilson

📖
Eric Howey
Eric Howey

📖 🔌
Hidetaka Okamoto
Hidetaka Okamoto

💻
Andria Brown
Andria Brown

⚠️ 💻 📖 🐛 💡 🚇 🚧 🤔 💬 👀
Konnor Rogers
Konnor Rogers

💻
Larissa Pissurno
Larissa Pissurno

📖
Lucy Macartney
Lucy Macartney

📖 🖋 💡
brendanmorrell
brendanmorrell

💻
Tom
Tom

💻
Milind Goel
Milind Goel

📖
Rajat Bhatt
Rajat Bhatt

💡

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © dayhaysoos