Skip to content

Instantly share code, notes, and snippets.

@erictherobot
Created November 25, 2016 18:05
Show Gist options
  • Save erictherobot/1762a6494d3af8b81a9dcc11421e2dff to your computer and use it in GitHub Desktop.
Save erictherobot/1762a6494d3af8b81a9dcc11421e2dff to your computer and use it in GitHub Desktop.
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!
@jpdevries
Copy link

Seems to be broken in Node 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment