React as dependency makes package throw errors about multiple versions of React
Opened this issue · 1 comments
Nantris commented
React should only be a devDependency
and/or peerDependency
to prevent this. Otherwise look cool!
estebanrao commented
I might have been having this issue. I've installed the package and I get this error right before rendering my elements
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
I'm currently in React v17