React as peer dependency
Closed this issue · 4 comments
Thanks for the project, this is a great idea!
Should react be added as a peer dependency to the package.json?
Yeap, we could. We mostly depend on the React component hooks.
I believe we support a wide range of React versions.
Yeah, looks like the component itself should work on any version of React.
The react-addons-shallow-compare has a peer dependency on react being the same version or higher than the addon package itself.
So...maybe it doesn't make sense to add a specific React peer dependency because it is included by the addon?
So...maybe it doesn't make sense to add a specific React peer dependency because it is included by the addon?
I would rather be explicit with a peerDependency
. Do you want to submit a PR?
I looked into this a little more, and I think npm handles unresolved peerDependencies of dependencies pretty well. There should be no need to add react as a peerDependency here. Closing.