react should be a peer dependency.
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.
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).
Be sure to remove the react-dom devDependency as well then.
Be sure to remove the react-dom devDependency as well then.
I'm only copying index.js ;)
unable to use this hook until this is merged 😰
Hey, now that we have React 17, this hook is importing a different version. Can this be merged?