react is included in both dependencies and peerDependencies, react should not be included inside dependencies as it may cause react to be installed twice and collide with the main react installation. The alternative is to add react as a devDependency.
Fragment from `react-grid-resizable package.json':
"dependencies": {
"@types/styled-components": "~4.0.3",
"classnames": "^2.2.6",
"react": "^16.8.4",
"styled-components": "~4.0.3"
},
"peerDependencies": {
"react": "^16.8.0"
}
This is happening in my cases and produces an error.
More info here https://reactjs.org/warnings/invalid-hook-call-warning.html#duplicate-react
Screenshot of my react libs:

reactis included in bothdependenciesandpeerDependencies,reactshould not be included insidedependenciesas it may causereactto be installed twice and collide with the mainreactinstallation. The alternative is to addreactas adevDependency.Fragment from `react-grid-resizable package.json':
This is happening in my cases and produces an error.
More info here https://reactjs.org/warnings/invalid-hook-call-warning.html#duplicate-react
Screenshot of my

reactlibs: