-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple React Instances #101
Comments
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 https://reactjs.org/warnings/invalid-hook-call-warning.html#duplicate-react |
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.
The text was updated successfully, but these errors were encountered: