React TypeScript UseContext with complex type does not work

前端 未结 0 1039
执念已碎
执念已碎 2020-12-30 07:21

The ThemeContext example from this link works, but it only serves one field. I tried to use this example for a complex type UserContext. The state is set, but not rendered.

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