DEV Community

loading...

Discussion on: How to publish your React component on npm

Collapse
sanderdebr profile image
sanderdebr • Edited

After hours of searching I could not get my package to work.. you're article and template worked in 1 try, thank you so much!

Install the .tgz for me was different: move the .tgz package to the react folder you want to include it in. Then install from that folder the .tgz from root.

Collapse
cjinghong profile image
Chan Jing Hong Author

That's great to hear! For installing the .tgz make sure that the path is an absolute path instead of a relative path if you want to install it from outside of your desired react project folder.