Shopping Cart Hook
react-use-cart is a lightweight shopping cart hook for React, Next.js, and Gatsby.
Create persistent carts with local storage, or your own adaptor.
react-use-cart supports flexible cart item schemas, multiple carts per page and offers cart handlers that let you trigger actions on item add, update or remove. It has no dependencies and is not tied to a specific payment gateway or checkout."