Invalid hook call 报出这种错误
来源:7-7 使用 combineReducers 完成对数据的拆分管理
慕莱坞6239572
2019-08-09
×
←→1 of 2 errors on the page
Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
- You might have mismatching versions of React and the renderer (such as React DOM)
- You might be breaking the Rules of Hooks
- You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
写回答
2回答
-
绿茶逃逸
2020-03-21
请问这个怎么解决
00 -
Dell
2019-08-11
hook使用方式有误
012019-08-11
相似问题