为什么我用useDispatch会报错
来源:13-9 -把组件列表存储到Redux store-重构useLoadQuestionData

宵夜一口吞
2025-05-05
为什么我用useDispatch会报错
写回答
2回答
-
双越
2025-05-06
这里有一个 Provider ,是从 react-redux 引入的
00 -
双越
2025-05-06
看报错信息 please ensure the component is wrapped in a <Provider>
你的组件外层是不是用 react-redux 的 <Provider> 包裹了?
022025-05-06
相似问题