react-js-pagination
react-js-pagination copied to clipboard
Multiple React Instances
I think that React and React Dom should be in Peer Dependencies rather than Dependencies in package.json Because of this, npm ls react shows multiple instances of react when react-js-pagination is being used.
P.S: This is my first issue so please bear with me.
I'm not sure but several React instances may cause troubles with react hooks
I'm not sure but several React instances may cause troubles with react hooks
Are you saying that the solution I suggested will cause this problem ?
@firzok It's the current situation that may cause problems with react-hooks. Your suggestion is helpful and should be addressed imho. See https://reactjs.org/warnings/invalid-hook-call-warning.html
npm ls react
[email protected] C:\Users\PC\Desktop\xxx\client
+-- [email protected]
-- [email protected]
-- [email protected]
https://reactjs.org/warnings/invalid-hook-call-warning.html#duplicate-react