3 ms·
FooBarComponent shouldn't have been packaged that way (it can include such a dist file for some people to use, but the npm package shouldn't export that). The t
by exogen 11y ago
FooBarComponent shouldn't have been packaged that way (it can include such a dist file for some people to use, but the npm package shouldn't export that). The typical way is for it to not include React as a `dependency` at all but a `peerDependency`. Then everything will be importing the same instance.
- joeframbach 11y ago> (it can include such a dist file for some people to use, but the npm package shouldn't export that) I think that is exactly what the article is suggesting we do.