Skip to content
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

react should be a peer dependency. #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

meesvandongen
Copy link

otherwise yarn will install react in "@rehooks/window-size/node_modules/react", which will break, as react 16.7.0 does not have hooks yet.

otherwise yarn will install react in "@rehooks/window-size/node_modules/react", which will break, as react 16.7.0 does not have hooks yet.
@derekdreery
Copy link

I'm going to copy-paste this hook because if I try to use it through npm it tries to use latest stable (which is incorrect).

@meesvandongen
Copy link
Author

Be sure to remove the react-dom devDependency as well then.

@derekdreery
Copy link

Be sure to remove the react-dom devDependency as well then.

I'm only copying index.js ;)

@callumacrae
Copy link

callumacrae commented Jan 29, 2020

unable to use this hook until this is merged 😰

@Goues
Copy link

Goues commented Nov 5, 2020

Hey, now that we have React 17, this hook is importing a different version. Can this be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants