Why can't I return map of previous state when using React useReducer

前端 未结 0 678
死守一世寂寞
死守一世寂寞 2021-01-12 06:49

I\'ve created a simple app to illustrate:

  • Broken: https://codesandbox.io/s/reducer-nightmare-5zxkw
  • Working: https://codesandbox.io/s/reducer-nightmare-
相关标签:
回答
  • 消灭零回复
提交回复
热议问题