场景:
在学习dva时候,遇到的问题。
问题描述:
Error: Could not find "store" in the context of "Connect(PuzzleCardPageTest)". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to Connect(PuzzleCardPageTest
问题原因:
目录名称写错了,models 写成了model,导致出现报错的情况
解决方法:
将model文件夹名称改为models,问题就解决了!