Rinse, React, repeat. A boilerplate to build a React component library.
To start your own React component library using this as a template, clone this repository a
$ git clone https://github.com/jsondavis/rinse-react <app-name>
$ cd <app-name>At this point you could opt to keep git history and just alter the remote origin. Another option is to remove the git directory as follows and just reinitialize the repo.
$ rm -rf .git
$ git initYou can easily develop and interact with your components by using Storybook. To run the local server, simply run:
$ npm run setup
$ npm run startThe setup script will install the dependencies, validate that the tests pass and build the library.
Navigate to http://localhost:6006 to view your stories. They should automatically update as you develop.
Storybook will pick up any story named {component}.stories.js file in any sub directory of src.