- Redux
- Redux Saga
- Consuming API REST
It was used redux & redux saga to make a global state of the cart, to be acessible from Main page & Header Component.
Redux storage and change the cart state. When the state is modified, the content rendered is refreshed.
Redux Saga makes a stock verify. If the product amount required from user is upper then stock amount is sended a Alert to the user.
Note that there are a counter in Header bag. That's counter is the amount of items in cart.