A reducer for cart state
Methods
# inner cartReducer(state, type, payload) → {object}
Cart reducer for store
Parameters:
| Name | Type | Description |
|---|---|---|
state |
object | current state |
type |
string | action type |
payload |
any | values to update the current state |
current state
object