React useReducer hook, how to handle multiple and unrelated types of actions?

后端 未结 0 1898
梦如初夏
梦如初夏 2021-02-19 04:27

I\'m using React hook useReducer to manage the state of a cart-like application. My cartReducer is used to handing adding/removing/changing quantity of

相关标签:
回答
  • 消灭零回复
提交回复
热议问题