I found a useful guide on how to publish a React component to NPM:
I used it to publish react-text-spinners.
react-text-spinners