You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught Error: 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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
at resolveDispatcher (VM119152 react.development.js:1476)
at Object.useContext (VM119152 react.development.js:1484)
at Button (button.js?cef1:129)
at renderWithHooks (react-dom.js:15015)
at updateForwardRef (react-dom.js:17074)
at beginWork (react-dom.js:19128)
at HTMLUnknownElement.callCallback (react-dom.js:3942)
at Object.invokeGuardedCallbackDev (react-dom.js:3991)
at invokeGuardedCallback (react-dom.js:4053)
at beginWork$1 (react-dom.js:23994)
升级后在es6的写法中,如果是class里面render一个button都会报错,怎么处理?
antd版本4.14.1
The text was updated successfully, but these errors were encountered:
Uncaught Error: 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:
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
at resolveDispatcher (VM119152 react.development.js:1476)
at Object.useContext (VM119152 react.development.js:1484)
at Button (button.js?cef1:129)
at renderWithHooks (react-dom.js:15015)
at updateForwardRef (react-dom.js:17074)
at beginWork (react-dom.js:19128)
at HTMLUnknownElement.callCallback (react-dom.js:3942)
at Object.invokeGuardedCallbackDev (react-dom.js:3991)
at invokeGuardedCallback (react-dom.js:4053)
at beginWork$1 (react-dom.js:23994)
升级后在es6的写法中,如果是class里面render一个button都会报错,怎么处理?
antd版本4.14.1
The text was updated successfully, but these errors were encountered: