React
React invalid hook call with mismatched versions or duplicate React
React reported an invalid hook call and included the common root causes: mismatched React and renderer versions, broken Rules of Hooks, or more than one React copy in the app.
React
React reported an invalid hook call and included the common root causes: mismatched React and renderer versions, broken Rules of Hooks, or more than one React copy in the app.
Observed message
Invalid hook call. Hooks can only be called inside of the body of a function component.
Why it happens
How to fix it
Official reference
React Docs: Minified React error #321Related errors
Explore more