how those warnng are written when you install the npm package.
react react
react? npm ls?
reactpeerDependencies npmpackage.jsonreact x
react ...
react
I can assure you that I have not installed react globally
-6.11 Update-
suddenly I feel that it is not good for users to have their own manual install, experience when using it. Is there any way
to make the component I develop ( inde.js
under a packaged lib
directory file) without the dependency of a third-party library (such as react),) and let the dependency be automatically installed to the user"s local .
-6.11 second update-
amount. I feel a little confused at this point. Back to the core.
1. It is that I want to make the package I develop smaller, so that other famous third-party libraries I use (such as react.js, etc.) do not participate in the packaging of the components I developed (but I used it! I"m import! )
2. Although most of this will not happen in 1, because these users must have installed react when using my react components. But in case he doesn"t install it, I want users to install it automatically and receive prompts when loading my bag.
with regard to these two points, I think we should make it clear.