react-json-view-compare
react-json-view-compare copied to clipboard
Invalid hook call. Hooks can only be called inside of the body of a function component
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
I'm getting above message while integrating the code. Could you please let me know if i'm missing anything. I'm using React class components.
maybe the react version's problerm,you can Check if your react version is the same as this repo
We are also facing same issue while using this component. We even tried by changing our react version to match the component but it is not working. Attached is the list of versions in my application.