erictherobot
11/25/2016 - 6:05 PM

Publish React Component in NPM

Publish React Component in NPM

First run:
npm install -g generator-react-component

And then running it to create a skeleton project:
yo react-component

Developing: 
npm start
http://localhost:8000

Edit files inside the src directory in your project folder

Releasing Your Package:
npm run build
npm run release

Yay!