Unable to pass objects state and dispatch to provider when using createContext and useReducer with typescript

后端 未结 0 1955
天涯浪人
天涯浪人 2021-01-22 05:50

I am trying to have a behaviour similar to the redux\' using contextApi and hooks, but I\'m having some trouble with typescript.

I want to provide both the s

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