Build your React Component
Run npm install
from the command line inside your project folder, this installs all of the package dependencies for the project.
Run npm run build
from the command line inside your project folder, this will run webpack via the "scripts > build" script in the package.json file above, when it's finished you should see the compiled ES5 version of your React component in the lib folder inside your project folder.
Login to the npm registry with the npm cli
Run npm login
from the command line and enter the credentials that you used to sign up to npmjs.com in the first step.
Publish your React component to npm!
Run npm publish
from the command line inside your project folder.