Pin React devDependencies, add peerDependencies
When the package is installed as a dependency, it should warn the installer that React is a peerDependency. When installed this way, the devDependencies won't be installed, so only one version of React will be present. However when it's installed as a standalone project, React should be installed automatically as a devDependency. I think this gives us the best of both worlds — simple development setup as well as supporting usage as an installed package.
Loading
Please register or sign in to comment