typescript err: must have a '[Symbol.iterator]()' method that returns an iterator when using react usereducer hook in context-why?

前端 未结 0 710
傲寒
傲寒 2021-02-13 19:07

Im using typescript, not too familiar with and am getting the following err for when I use context and useReducer hook- in particularly for my dispatch method I get this:

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